Skip to content

Commit e2796f2

Browse files
committed
Benchparse output undo skips
1 parent f58a526 commit e2796f2

File tree

2 files changed

+3
-19
lines changed

2 files changed

+3
-19
lines changed

benchparse/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313
)
1414

1515
func main() {
16-
if len(os.Args) < 2 {
17-
panic("need to specify input file")
16+
if len(os.Args) < 3 {
17+
panic("need to specify input and output file")
1818
}
1919
fIn, err := os.Open(os.Args[1])
2020
if err != nil {
@@ -35,7 +35,7 @@ func main() {
3535
panic(err)
3636
}
3737

38-
fOut, err := os.Create("out.csv")
38+
fOut, err := os.Create(os.Args[2])
3939
if err != nil {
4040
panic(err)
4141
}

hamt_test.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,11 @@ var shortIdentityHash = func(k []byte) []byte {
145145
}
146146

147147
func 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

153152
func 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

163161
func 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

195192
func 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

527523
func 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

536531
func TestBasic(t *testing.T) {
537-
t.Skip()
538532
testBasic(t)
539533
}
540534

541535
func 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

588581
func 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

628620
func 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

752743
func 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

773763
func 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

798787
func 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

817805
func 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

855842
func 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

897883
func 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.
947932
func TestMalformedHamt(t *testing.T) {
948-
t.Skip()
949933
ctx := context.Background()
950934
blocks := newMockBlocks()
951935
cs := cbor.NewCborStore(blocks)

0 commit comments

Comments
 (0)