@@ -145,13 +145,11 @@ var shortIdentityHash = func(k []byte) []byte {
145
145
}
146
146
147
147
func TestCanonicalStructure (t * testing.T ) {
148
- t .Skip ()
149
148
addAndRemoveKeys (t , []string {"K" }, []string {"B" }, UseHashFunction (identityHash ))
150
149
addAndRemoveKeys (t , []string {"K0" , "K1" , "KAA1" , "KAA2" , "KAA3" }, []string {"KAA4" })
151
150
}
152
151
153
152
func TestCanonicalStructureAlternateBitWidth (t * testing.T ) {
154
- t .Skip ()
155
153
addAndRemoveKeys (t , []string {"K" }, []string {"B" }, UseTreeBitWidth (7 ), UseHashFunction (identityHash ))
156
154
addAndRemoveKeys (t , []string {"K0" , "K1" , "KAA1" , "KAA2" , "KAA3" }, []string {"KAA4" }, UseTreeBitWidth (7 ), UseHashFunction (identityHash ))
157
155
addAndRemoveKeys (t , []string {"K" }, []string {"B" }, UseTreeBitWidth (6 ), UseHashFunction (identityHash ))
@@ -161,7 +159,6 @@ func TestCanonicalStructureAlternateBitWidth(t *testing.T) {
161
159
}
162
160
163
161
func TestOverflow (t * testing.T ) {
164
- t .Skip ()
165
162
keys := make ([]string , 4 )
166
163
for i := range keys {
167
164
keys [i ] = strings .Repeat ("A" , 32 ) + fmt .Sprintf ("%d" , i )
@@ -193,7 +190,6 @@ func TestOverflow(t *testing.T) {
193
190
}
194
191
195
192
func TestFillAndCollapse (t * testing.T ) {
196
- t .Skip ()
197
193
ctx := context .Background ()
198
194
cs := cbor .NewCborStore (newMockBlocks ())
199
195
root := NewNode (cs , UseTreeBitWidth (8 ), UseHashFunction (identityHash ))
@@ -525,7 +521,6 @@ func statsrec(n *Node, st *hamtStats) {
525
521
}
526
522
527
523
func TestHash (t * testing.T ) {
528
- t .Skip ()
529
524
h1 := defaultHashFunction ([]byte ("abcd" ))
530
525
h2 := defaultHashFunction ([]byte ("abce" ))
531
526
if h1 [0 ] == h2 [0 ] && h1 [1 ] == h2 [1 ] && h1 [3 ] == h2 [3 ] {
@@ -534,12 +529,10 @@ func TestHash(t *testing.T) {
534
529
}
535
530
536
531
func TestBasic (t * testing.T ) {
537
- t .Skip ()
538
532
testBasic (t )
539
533
}
540
534
541
535
func TestSha256 (t * testing.T ) {
542
- t .Skip ()
543
536
testBasic (t , UseHashFunction (func (in []byte ) []byte {
544
537
out := sha256 .Sum256 (in )
545
538
return out [:]
@@ -586,7 +579,6 @@ func testBasic(t *testing.T, options ...Option) {
586
579
}
587
580
588
581
func TestDelete (t * testing.T ) {
589
- t .Skip ()
590
582
ctx := context .Background ()
591
583
cs := cbor .NewCborStore (newMockBlocks ())
592
584
begn := NewNode (cs )
@@ -626,7 +618,6 @@ func TestDelete(t *testing.T) {
626
618
}
627
619
628
620
func TestSetGet (t * testing.T ) {
629
- t .Skip ()
630
621
ctx := context .Background ()
631
622
vals := make (map [string ][]byte )
632
623
var keys []string
@@ -750,7 +741,6 @@ func nodesEqual(t *testing.T, store cbor.IpldStore, n1, n2 *Node) bool {
750
741
}
751
742
752
743
func TestReloadEmpty (t * testing.T ) {
753
- t .Skip ()
754
744
ctx := context .Background ()
755
745
cs := cbor .NewCborStore (newMockBlocks ())
756
746
@@ -771,7 +761,6 @@ func TestReloadEmpty(t *testing.T) {
771
761
}
772
762
773
763
func TestCopy (t * testing.T ) {
774
- t .Skip ()
775
764
ctx := context .Background ()
776
765
cs := cbor .NewCborStore (newMockBlocks ())
777
766
@@ -796,7 +785,6 @@ func TestCopy(t *testing.T) {
796
785
}
797
786
798
787
func TestCopyCopiesNilSlices (t * testing.T ) {
799
- t .Skip ()
800
788
cs := cbor .NewCborStore (newMockBlocks ())
801
789
802
790
n := NewNode (cs )
@@ -815,7 +803,6 @@ func TestCopyCopiesNilSlices(t *testing.T) {
815
803
}
816
804
817
805
func TestCopyWithoutFlush (t * testing.T ) {
818
- t .Skip ()
819
806
ctx := context .Background ()
820
807
cs := cbor .NewCborStore (newMockBlocks ())
821
808
@@ -853,7 +840,6 @@ func TestCopyWithoutFlush(t *testing.T) {
853
840
}
854
841
855
842
func TestValueLinking (t * testing.T ) {
856
- t .Skip ()
857
843
ctx := context .Background ()
858
844
cs := cbor .NewCborStore (newMockBlocks ())
859
845
@@ -895,7 +881,6 @@ func TestValueLinking(t *testing.T) {
895
881
}
896
882
897
883
func TestSetNilValues (t * testing.T ) {
898
- t .Skip ()
899
884
ctx := context .Background ()
900
885
cs := cbor .NewCborStore (newMockBlocks ())
901
886
@@ -945,7 +930,6 @@ func TestSetNilValues(t *testing.T) {
945
930
// nodes to test whether the implementation will reject malformed encoded nodes
946
931
// on load.
947
932
func TestMalformedHamt (t * testing.T ) {
948
- t .Skip ()
949
933
ctx := context .Background ()
950
934
blocks := newMockBlocks ()
951
935
cs := cbor .NewCborStore (blocks )
0 commit comments