@@ -145,13 +145,11 @@ var shortIdentityHash = func(k []byte) []byte {
145145}
146146
147147func TestCanonicalStructure (t * testing.T ) {
148- t .Skip ()
149148 addAndRemoveKeys (t , []string {"K" }, []string {"B" }, UseHashFunction (identityHash ))
150149 addAndRemoveKeys (t , []string {"K0" , "K1" , "KAA1" , "KAA2" , "KAA3" }, []string {"KAA4" })
151150}
152151
153152func TestCanonicalStructureAlternateBitWidth (t * testing.T ) {
154- t .Skip ()
155153 addAndRemoveKeys (t , []string {"K" }, []string {"B" }, UseTreeBitWidth (7 ), UseHashFunction (identityHash ))
156154 addAndRemoveKeys (t , []string {"K0" , "K1" , "KAA1" , "KAA2" , "KAA3" }, []string {"KAA4" }, UseTreeBitWidth (7 ), UseHashFunction (identityHash ))
157155 addAndRemoveKeys (t , []string {"K" }, []string {"B" }, UseTreeBitWidth (6 ), UseHashFunction (identityHash ))
@@ -161,7 +159,6 @@ func TestCanonicalStructureAlternateBitWidth(t *testing.T) {
161159}
162160
163161func TestOverflow (t * testing.T ) {
164- t .Skip ()
165162 keys := make ([]string , 4 )
166163 for i := range keys {
167164 keys [i ] = strings .Repeat ("A" , 32 ) + fmt .Sprintf ("%d" , i )
@@ -193,7 +190,6 @@ func TestOverflow(t *testing.T) {
193190}
194191
195192func TestFillAndCollapse (t * testing.T ) {
196- t .Skip ()
197193 ctx := context .Background ()
198194 cs := cbor .NewCborStore (newMockBlocks ())
199195 root := NewNode (cs , UseTreeBitWidth (8 ), UseHashFunction (identityHash ))
@@ -525,7 +521,6 @@ func statsrec(n *Node, st *hamtStats) {
525521}
526522
527523func TestHash (t * testing.T ) {
528- t .Skip ()
529524 h1 := defaultHashFunction ([]byte ("abcd" ))
530525 h2 := defaultHashFunction ([]byte ("abce" ))
531526 if h1 [0 ] == h2 [0 ] && h1 [1 ] == h2 [1 ] && h1 [3 ] == h2 [3 ] {
@@ -534,12 +529,10 @@ func TestHash(t *testing.T) {
534529}
535530
536531func TestBasic (t * testing.T ) {
537- t .Skip ()
538532 testBasic (t )
539533}
540534
541535func TestSha256 (t * testing.T ) {
542- t .Skip ()
543536 testBasic (t , UseHashFunction (func (in []byte ) []byte {
544537 out := sha256 .Sum256 (in )
545538 return out [:]
@@ -586,7 +579,6 @@ func testBasic(t *testing.T, options ...Option) {
586579}
587580
588581func TestDelete (t * testing.T ) {
589- t .Skip ()
590582 ctx := context .Background ()
591583 cs := cbor .NewCborStore (newMockBlocks ())
592584 begn := NewNode (cs )
@@ -626,7 +618,6 @@ func TestDelete(t *testing.T) {
626618}
627619
628620func TestSetGet (t * testing.T ) {
629- t .Skip ()
630621 ctx := context .Background ()
631622 vals := make (map [string ][]byte )
632623 var keys []string
@@ -750,7 +741,6 @@ func nodesEqual(t *testing.T, store cbor.IpldStore, n1, n2 *Node) bool {
750741}
751742
752743func TestReloadEmpty (t * testing.T ) {
753- t .Skip ()
754744 ctx := context .Background ()
755745 cs := cbor .NewCborStore (newMockBlocks ())
756746
@@ -771,7 +761,6 @@ func TestReloadEmpty(t *testing.T) {
771761}
772762
773763func TestCopy (t * testing.T ) {
774- t .Skip ()
775764 ctx := context .Background ()
776765 cs := cbor .NewCborStore (newMockBlocks ())
777766
@@ -796,7 +785,6 @@ func TestCopy(t *testing.T) {
796785}
797786
798787func TestCopyCopiesNilSlices (t * testing.T ) {
799- t .Skip ()
800788 cs := cbor .NewCborStore (newMockBlocks ())
801789
802790 n := NewNode (cs )
@@ -815,7 +803,6 @@ func TestCopyCopiesNilSlices(t *testing.T) {
815803}
816804
817805func TestCopyWithoutFlush (t * testing.T ) {
818- t .Skip ()
819806 ctx := context .Background ()
820807 cs := cbor .NewCborStore (newMockBlocks ())
821808
@@ -853,7 +840,6 @@ func TestCopyWithoutFlush(t *testing.T) {
853840}
854841
855842func TestValueLinking (t * testing.T ) {
856- t .Skip ()
857843 ctx := context .Background ()
858844 cs := cbor .NewCborStore (newMockBlocks ())
859845
@@ -895,7 +881,6 @@ func TestValueLinking(t *testing.T) {
895881}
896882
897883func TestSetNilValues (t * testing.T ) {
898- t .Skip ()
899884 ctx := context .Background ()
900885 cs := cbor .NewCborStore (newMockBlocks ())
901886
@@ -945,7 +930,6 @@ func TestSetNilValues(t *testing.T) {
945930// nodes to test whether the implementation will reject malformed encoded nodes
946931// on load.
947932func TestMalformedHamt (t * testing.T ) {
948- t .Skip ()
949933 ctx := context .Background ()
950934 blocks := newMockBlocks ()
951935 cs := cbor .NewCborStore (blocks )
0 commit comments