@@ -148,13 +148,11 @@ var shortIdentityHash = func(k []byte) []byte {
148
148
}
149
149
150
150
func TestCanonicalStructure (t * testing.T ) {
151
- t .Skip ()
152
151
addAndRemoveKeys (t , []string {"K" }, []string {"B" }, UseHashFunction (identityHash ))
153
152
addAndRemoveKeys (t , []string {"K0" , "K1" , "KAA1" , "KAA2" , "KAA3" }, []string {"KAA4" })
154
153
}
155
154
156
155
func TestCanonicalStructureAlternateBitWidth (t * testing.T ) {
157
- t .Skip ()
158
156
addAndRemoveKeys (t , []string {"K" }, []string {"B" }, UseTreeBitWidth (7 ), UseHashFunction (identityHash ))
159
157
addAndRemoveKeys (t , []string {"K0" , "K1" , "KAA1" , "KAA2" , "KAA3" }, []string {"KAA4" }, UseTreeBitWidth (7 ), UseHashFunction (identityHash ))
160
158
addAndRemoveKeys (t , []string {"K" }, []string {"B" }, UseTreeBitWidth (6 ), UseHashFunction (identityHash ))
@@ -164,7 +162,6 @@ func TestCanonicalStructureAlternateBitWidth(t *testing.T) {
164
162
}
165
163
166
164
func TestOverflow (t * testing.T ) {
167
- t .Skip ()
168
165
keys := make ([]string , 4 )
169
166
for i := range keys {
170
167
keys [i ] = strings .Repeat ("A" , 32 ) + fmt .Sprintf ("%d" , i )
@@ -196,7 +193,6 @@ func TestOverflow(t *testing.T) {
196
193
}
197
194
198
195
func TestFillAndCollapse (t * testing.T ) {
199
- t .Skip ()
200
196
ctx := context .Background ()
201
197
cs := cbor .NewCborStore (newMockBlocks ())
202
198
root := NewNode (cs , UseTreeBitWidth (8 ), UseHashFunction (identityHash ))
@@ -528,7 +524,6 @@ func statsrec(n *Node, st *hamtStats) {
528
524
}
529
525
530
526
func TestHash (t * testing.T ) {
531
- t .Skip ()
532
527
h1 := defaultHashFunction ([]byte ("abcd" ))
533
528
h2 := defaultHashFunction ([]byte ("abce" ))
534
529
if h1 [0 ] == h2 [0 ] && h1 [1 ] == h2 [1 ] && h1 [3 ] == h2 [3 ] {
@@ -537,12 +532,10 @@ func TestHash(t *testing.T) {
537
532
}
538
533
539
534
func TestBasic (t * testing.T ) {
540
- t .Skip ()
541
535
testBasic (t )
542
536
}
543
537
544
538
func TestSha256 (t * testing.T ) {
545
- t .Skip ()
546
539
testBasic (t , UseHashFunction (func (in []byte ) []byte {
547
540
out := sha256 .Sum256 (in )
548
541
return out [:]
@@ -589,7 +582,6 @@ func testBasic(t *testing.T, options ...Option) {
589
582
}
590
583
591
584
func TestDelete (t * testing.T ) {
592
- t .Skip ()
593
585
ctx := context .Background ()
594
586
cs := cbor .NewCborStore (newMockBlocks ())
595
587
begn := NewNode (cs )
@@ -629,7 +621,6 @@ func TestDelete(t *testing.T) {
629
621
}
630
622
631
623
func TestSetGet (t * testing.T ) {
632
- t .Skip ()
633
624
ctx := context .Background ()
634
625
vals := make (map [string ][]byte )
635
626
var keys []string
@@ -753,7 +744,6 @@ func nodesEqual(t *testing.T, store cbor.IpldStore, n1, n2 *Node) bool {
753
744
}
754
745
755
746
func TestReloadEmpty (t * testing.T ) {
756
- t .Skip ()
757
747
ctx := context .Background ()
758
748
cs := cbor .NewCborStore (newMockBlocks ())
759
749
@@ -774,7 +764,6 @@ func TestReloadEmpty(t *testing.T) {
774
764
}
775
765
776
766
func TestCopy (t * testing.T ) {
777
- t .Skip ()
778
767
ctx := context .Background ()
779
768
cs := cbor .NewCborStore (newMockBlocks ())
780
769
@@ -799,7 +788,6 @@ func TestCopy(t *testing.T) {
799
788
}
800
789
801
790
func TestCopyCopiesNilSlices (t * testing.T ) {
802
- t .Skip ()
803
791
cs := cbor .NewCborStore (newMockBlocks ())
804
792
805
793
n := NewNode (cs )
@@ -818,7 +806,6 @@ func TestCopyCopiesNilSlices(t *testing.T) {
818
806
}
819
807
820
808
func TestCopyWithoutFlush (t * testing.T ) {
821
- t .Skip ()
822
809
ctx := context .Background ()
823
810
cs := cbor .NewCborStore (newMockBlocks ())
824
811
@@ -856,7 +843,6 @@ func TestCopyWithoutFlush(t *testing.T) {
856
843
}
857
844
858
845
func TestValueLinking (t * testing.T ) {
859
- t .Skip ()
860
846
ctx := context .Background ()
861
847
cs := cbor .NewCborStore (newMockBlocks ())
862
848
@@ -898,7 +884,6 @@ func TestValueLinking(t *testing.T) {
898
884
}
899
885
900
886
func TestSetNilValues (t * testing.T ) {
901
- t .Skip ()
902
887
ctx := context .Background ()
903
888
cs := cbor .NewCborStore (newMockBlocks ())
904
889
@@ -948,7 +933,6 @@ func TestSetNilValues(t *testing.T) {
948
933
// nodes to test whether the implementation will reject malformed encoded nodes
949
934
// on load.
950
935
func TestMalformedHamt (t * testing.T ) {
951
- t .Skip ()
952
936
ctx := context .Background ()
953
937
blocks := newMockBlocks ()
954
938
cs := cbor .NewCborStore (blocks )
0 commit comments