Skip to content

Commit ebbe1ba

Browse files
authored
fix(fuzz): skip time parsing errors (#901)
Add "parsing time .*" pattern to skip list to handle Go time.Parse errors like "parsing time ... extra text ..." that are expected runtime errors, not bugs. Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
1 parent 02f92c2 commit ebbe1ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/fuzz/fuzz_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ func FuzzExpr(f *testing.F) {
4747
regexp.MustCompile(`strings: negative Repeat count`),
4848
regexp.MustCompile(`strings: illegal bytes to escape`),
4949
regexp.MustCompile(`invalid date .*`),
50+
regexp.MustCompile(`parsing time .*`),
5051
regexp.MustCompile(`cannot parse .* as .*`),
5152
regexp.MustCompile(`operator "in" not defined on .*`),
5253
regexp.MustCompile(`cannot sum .*`),

0 commit comments

Comments
 (0)