Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Detect and execute fuzz targets as tests #1132

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

Merged
merged 4 commits into from
Aug 1, 2022

Conversation

nevkontakte
Copy link
Member

This change adds support for discovering fuzz targets and executing them in unit test mode. The tests are executed with seed inputs only, since we don't have the libfuzzer infrastructure to actually perform fuzzing.

While at it, I also factored out test function discovery into its own internal package, which is a step towards decluttering tool.go and testing logic in it.

Updates #1092.

@nevkontakte nevkontakte requested a review from flimzy July 31, 2022 13:37
@nevkontakte nevkontakte mentioned this pull request Jul 31, 2022
5 tasks
This should de-clutter tool.go a bit and help with maintainability in
future.
One of the helper functions requires generics to work correctly. Until
they are properly supported we have to stub it out.

Generics support is tracked in
gopherjs#1013.
@nevkontakte nevkontakte merged commit 6ca1089 into gopherjs:go1.18 Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants