Skip to content

Commit 3b0c904

Browse files
committed
Remove redundant benchmark test, fix typo
1 parent 4b7a189 commit 3b0c904

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

inferrer_test.go

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,11 @@ func TestJTDInferWithDiscriminatorHints(t *testing.T) {
251251
}
252252

253253
func BenchmarkInferOneRowNoMissingHints(b *testing.B) {
254-
wors := generateRows(1)
254+
rows := generateRows(1)
255255
emptyHints := WithoutHints()
256256

257257
for n := 0; n < b.N; n++ {
258-
InferStrings(wors, emptyHints)
258+
InferStrings(rows, emptyHints)
259259
}
260260
}
261261

@@ -268,24 +268,6 @@ func BenchmarkInferThousandRowsNoMissingHints(b *testing.B) {
268268
}
269269
}
270270

271-
func BenchmarkInferOneRowMissingHints(b *testing.B) {
272-
rows := generateRows(1)
273-
hints := Hints{}
274-
275-
for n := 0; n < b.N; n++ {
276-
InferStrings(rows, hints)
277-
}
278-
}
279-
280-
func BenchmarkInferThousandRowsMissingHints(b *testing.B) {
281-
rows := generateRows(1000)
282-
hints := Hints{}
283-
284-
for n := 0; n < b.N; n++ {
285-
InferStrings(rows, hints)
286-
}
287-
}
288-
289271
func generateRows(n int) []string {
290272
row := `{"name":"bench", "speed":100.2}`
291273
rows := []string{}

0 commit comments

Comments
 (0)