Skip to content

Commit 0785f19

Browse files
authored
fix(fuzz): skip reflect err for variadic calls (#921)
Skip pattern for the variadic function type mismatch error format ("reflect: cannot use X as type Y in Call"). Differs from the regular function error format that was already covered. Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
1 parent d3805b0 commit 0785f19

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

test/fuzz/fuzz_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ func FuzzExpr(f *testing.F) {
4242
regexp.MustCompile(`using interface \{} as type .*`),
4343
regexp.MustCompile(`reflect.Value.MapIndex: value of type .* is not assignable to type .*`),
4444
regexp.MustCompile(`reflect: Call using .* as type .*`),
45+
regexp.MustCompile(`reflect: cannot use .* as type .* in .*`),
4546
regexp.MustCompile(`reflect: Call with too few input arguments`),
4647
regexp.MustCompile(`invalid number of arguments`),
4748
regexp.MustCompile(`reflect: call of reflect.Value.Call on .* Value`),

0 commit comments

Comments
 (0)