diff --git a/compiler_test.go b/compiler_test.go index 0f6463b0..c16ae637 100644 --- a/compiler_test.go +++ b/compiler_test.go @@ -345,7 +345,7 @@ func BenchmarkCompile(b *testing.B) { if err != nil { b.Fatal(err) } - query, err := gojq.Parse(string(cnt)) + query, err := gojq.Parse(string(cnt) + ".") if err != nil { b.Fatal(err) } @@ -353,6 +353,8 @@ func BenchmarkCompile(b *testing.B) { _, err := gojq.Compile( query, gojq.WithInputIter(gojq.NewIter()), + gojq.WithFunction("debug", 0, 0, + func(v any, _ []any) any { return v }), ) if err != nil { b.Fatal(err)