Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions builtin/builtin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ func TestBuiltin_errors(t *testing.T) {
{`timezone(nil)`, "cannot use nil as argument (type string) to call timezone (1:10)"},
{`flatten([1, 2], [3, 4])`, "invalid number of arguments (expected 1, got 2)"},
{`flatten(1)`, "cannot flatten int"},
{`fromJSON("5e2482")`, "cannot unmarshal number"},
}
for _, test := range errorTests {
t.Run(test.input, func(t *testing.T) {
Expand Down
1 change: 1 addition & 0 deletions test/fuzz/fuzz_corpus.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19543,3 +19543,4 @@ values({"foo": ok})
{"foo": score, "foo": array}.array
{"foo": score, "foo": f32}
{"foo": score, "foo": greet}
fromJSON('5e2482')
1 change: 1 addition & 0 deletions test/fuzz/fuzz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func FuzzExpr(f *testing.F) {
regexp.MustCompile(`unknown time zone`),
regexp.MustCompile(`invalid location name`),
regexp.MustCompile(`json: unsupported value`),
regexp.MustCompile(`json: cannot unmarshal .* into Go value of type .*`),
regexp.MustCompile(`unexpected end of JSON input`),
regexp.MustCompile(`memory budget exceeded`),
regexp.MustCompile(`using interface \{} as type .*`),
Expand Down
Loading