Skip to content

Commit

Permalink
Fix compilation after revert
Browse files Browse the repository at this point in the history
  • Loading branch information
bombsimon committed Oct 3, 2023
1 parent 99ac849 commit 1112b73
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions inferrer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func TestInferString(t *testing.T) {

for _, tc := range cases {
t.Run(tc.description, func(t *testing.T) {
gotSchema := InferStrings(tc.values, NewHints()).IntoSchema()
gotSchema := InferStrings(tc.values, WithoutHints()).IntoSchema()
assert.EqualValues(t, tc.expectedSchema, gotSchema)
})
}
Expand Down Expand Up @@ -252,7 +252,7 @@ func TestJTDInferWithDiscriminatorHints(t *testing.T) {

func BenchmarkInferOneRowNoMissingHints(b *testing.B) {
wors := generateRows(1)
emptyHints := NewHints()
emptyHints := WithoutHints()

for n := 0; n < b.N; n++ {
InferStrings(wors, emptyHints)
Expand All @@ -261,7 +261,7 @@ func BenchmarkInferOneRowNoMissingHints(b *testing.B) {

func BenchmarkInferThousandRowsNoMissingHints(b *testing.B) {
rows := generateRows(1000)
emptyHints := NewHints()
emptyHints := WithoutHints()

for n := 0; n < b.N; n++ {
InferStrings(rows, emptyHints)
Expand All @@ -270,15 +270,19 @@ func BenchmarkInferThousandRowsNoMissingHints(b *testing.B) {

func BenchmarkInferOneRowMissingHints(b *testing.B) {
rows := generateRows(1)
hints := Hints{}

for n := 0; n < b.N; n++ {
InferStrings(rows, nil)
InferStrings(rows, hints)
}
}

func BenchmarkInferThousandRowsMissingHints(b *testing.B) {
rows := generateRows(1000)
hints := Hints{}

for n := 0; n < b.N; n++ {
InferStrings(rows, nil)
InferStrings(rows, hints)
}
}

Expand Down

0 comments on commit 1112b73

Please sign in to comment.