-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eskip: add comment test cases for ParsePredicates #2849
Conversation
pls also add |
1e4a96b
to
51e73f2
Compare
eskip/eskip_test.go
Outdated
@@ -386,16 +386,22 @@ func TestPredicateParsing(t *testing.T) { | |||
}, { | |||
title: "star notation", | |||
input: `*`, | |||
}, { | |||
title: "invalid fuzz 1", | |||
input: `///`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, //
is an eskip comment
eskip/eskip_test.go
Outdated
}, { | ||
title: "invalid fuzz 2", | ||
input: "\x2f\x2f\x00\x00\x00\xe6\xfe\x00\x00\x2f\x00\x00\x00\x00\x00\x00\x00\xe6\xfe\x00\x00\x2f\x00\x00\x00\x00", | ||
fail: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\x2f\x2f...
== //...
- a comment
51e73f2
to
fe1ead1
Compare
Add test cases from #2755 discovered by fuzzing. Signed-off-by: Alexander Yastrebov <[email protected]>
fe1ead1
to
3382963
Compare
👍 |
1 similar comment
👍 |
We should also fix |
Followup on #2849 Signed-off-by: Alexander Yastrebov <[email protected]>
Followup on #2849 Signed-off-by: Alexander Yastrebov <[email protected]>
I have added comments to the fuzzer dictionary to guide the fuzzer to use it more |
Followup on #2849 Signed-off-by: Alexander Yastrebov <[email protected]>
Add test cases from #2755 discovered by fuzzing.