From a769448e6ce1e5914f7503e3d52c4143fc4c7f0c Mon Sep 17 00:00:00 2001 From: Ville Vesilehto Date: Sun, 1 Feb 2026 20:56:58 +0200 Subject: [PATCH] fix(fuzz): skip reflect err for variadic calls 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 --- test/fuzz/fuzz_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/test/fuzz/fuzz_test.go b/test/fuzz/fuzz_test.go index 78661218..93a043af 100644 --- a/test/fuzz/fuzz_test.go +++ b/test/fuzz/fuzz_test.go @@ -42,6 +42,7 @@ func FuzzExpr(f *testing.F) { regexp.MustCompile(`using interface \{} as type .*`), regexp.MustCompile(`reflect.Value.MapIndex: value of type .* is not assignable to type .*`), regexp.MustCompile(`reflect: Call using .* as type .*`), + regexp.MustCompile(`reflect: cannot use .* as type .* in .*`), regexp.MustCompile(`reflect: Call with too few input arguments`), regexp.MustCompile(`invalid number of arguments`), regexp.MustCompile(`reflect: call of reflect.Value.Call on .* Value`),