@@ -148,13 +148,11 @@ var shortIdentityHash = func(k []byte) []byte {
148148}
149149
150150func TestCanonicalStructure (t * testing.T ) {
151- t .Skip ()
152151 addAndRemoveKeys (t , []string {"K" }, []string {"B" }, UseHashFunction (identityHash ))
153152 addAndRemoveKeys (t , []string {"K0" , "K1" , "KAA1" , "KAA2" , "KAA3" }, []string {"KAA4" })
154153}
155154
156155func TestCanonicalStructureAlternateBitWidth (t * testing.T ) {
157- t .Skip ()
158156 addAndRemoveKeys (t , []string {"K" }, []string {"B" }, UseTreeBitWidth (7 ), UseHashFunction (identityHash ))
159157 addAndRemoveKeys (t , []string {"K0" , "K1" , "KAA1" , "KAA2" , "KAA3" }, []string {"KAA4" }, UseTreeBitWidth (7 ), UseHashFunction (identityHash ))
160158 addAndRemoveKeys (t , []string {"K" }, []string {"B" }, UseTreeBitWidth (6 ), UseHashFunction (identityHash ))
@@ -164,7 +162,6 @@ func TestCanonicalStructureAlternateBitWidth(t *testing.T) {
164162}
165163
166164func TestOverflow (t * testing.T ) {
167- t .Skip ()
168165 keys := make ([]string , 4 )
169166 for i := range keys {
170167 keys [i ] = strings .Repeat ("A" , 32 ) + fmt .Sprintf ("%d" , i )
@@ -196,7 +193,6 @@ func TestOverflow(t *testing.T) {
196193}
197194
198195func TestFillAndCollapse (t * testing.T ) {
199- t .Skip ()
200196 ctx := context .Background ()
201197 cs := cbor .NewCborStore (newMockBlocks ())
202198 root := NewNode (cs , UseTreeBitWidth (8 ), UseHashFunction (identityHash ))
@@ -528,7 +524,6 @@ func statsrec(n *Node, st *hamtStats) {
528524}
529525
530526func TestHash (t * testing.T ) {
531- t .Skip ()
532527 h1 := defaultHashFunction ([]byte ("abcd" ))
533528 h2 := defaultHashFunction ([]byte ("abce" ))
534529 if h1 [0 ] == h2 [0 ] && h1 [1 ] == h2 [1 ] && h1 [3 ] == h2 [3 ] {
@@ -537,12 +532,10 @@ func TestHash(t *testing.T) {
537532}
538533
539534func TestBasic (t * testing.T ) {
540- t .Skip ()
541535 testBasic (t )
542536}
543537
544538func TestSha256 (t * testing.T ) {
545- t .Skip ()
546539 testBasic (t , UseHashFunction (func (in []byte ) []byte {
547540 out := sha256 .Sum256 (in )
548541 return out [:]
@@ -589,7 +582,6 @@ func testBasic(t *testing.T, options ...Option) {
589582}
590583
591584func TestDelete (t * testing.T ) {
592- t .Skip ()
593585 ctx := context .Background ()
594586 cs := cbor .NewCborStore (newMockBlocks ())
595587 begn := NewNode (cs )
@@ -629,7 +621,6 @@ func TestDelete(t *testing.T) {
629621}
630622
631623func TestSetGet (t * testing.T ) {
632- t .Skip ()
633624 ctx := context .Background ()
634625 vals := make (map [string ][]byte )
635626 var keys []string
@@ -753,7 +744,6 @@ func nodesEqual(t *testing.T, store cbor.IpldStore, n1, n2 *Node) bool {
753744}
754745
755746func TestReloadEmpty (t * testing.T ) {
756- t .Skip ()
757747 ctx := context .Background ()
758748 cs := cbor .NewCborStore (newMockBlocks ())
759749
@@ -774,7 +764,6 @@ func TestReloadEmpty(t *testing.T) {
774764}
775765
776766func TestCopy (t * testing.T ) {
777- t .Skip ()
778767 ctx := context .Background ()
779768 cs := cbor .NewCborStore (newMockBlocks ())
780769
@@ -799,7 +788,6 @@ func TestCopy(t *testing.T) {
799788}
800789
801790func TestCopyCopiesNilSlices (t * testing.T ) {
802- t .Skip ()
803791 cs := cbor .NewCborStore (newMockBlocks ())
804792
805793 n := NewNode (cs )
@@ -818,7 +806,6 @@ func TestCopyCopiesNilSlices(t *testing.T) {
818806}
819807
820808func TestCopyWithoutFlush (t * testing.T ) {
821- t .Skip ()
822809 ctx := context .Background ()
823810 cs := cbor .NewCborStore (newMockBlocks ())
824811
@@ -856,7 +843,6 @@ func TestCopyWithoutFlush(t *testing.T) {
856843}
857844
858845func TestValueLinking (t * testing.T ) {
859- t .Skip ()
860846 ctx := context .Background ()
861847 cs := cbor .NewCborStore (newMockBlocks ())
862848
@@ -898,7 +884,6 @@ func TestValueLinking(t *testing.T) {
898884}
899885
900886func TestSetNilValues (t * testing.T ) {
901- t .Skip ()
902887 ctx := context .Background ()
903888 cs := cbor .NewCborStore (newMockBlocks ())
904889
@@ -948,7 +933,6 @@ func TestSetNilValues(t *testing.T) {
948933// nodes to test whether the implementation will reject malformed encoded nodes
949934// on load.
950935func TestMalformedHamt (t * testing.T ) {
951- t .Skip ()
952936 ctx := context .Background ()
953937 blocks := newMockBlocks ()
954938 cs := cbor .NewCborStore (blocks )
0 commit comments