Skip to content
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

Rule 'var-naming' should allow Fuzz_xxx() #622

Closed
0xrgb opened this issue Jan 18, 2022 · 1 comment · Fixed by #623
Closed

Rule 'var-naming' should allow Fuzz_xxx() #622

0xrgb opened this issue Jan 18, 2022 · 1 comment · Fixed by #623

Comments

@0xrgb
Copy link

0xrgb commented Jan 18, 2022

Is your feature request related to a problem? Please describe.
In Go 1.18, fuzzing is officially supported. FuzzXxx should be treated as same as TestXxx, BenchmarkXxx, ExampleXxx, which can use underscore(_) in the function name.
For example, if you are developing big.Int and add a fuzz test to big.Int.SetString, the test function's name will be FuzzInt_SetString.

Describe the solution you'd like
I haven't tested it, but I think adding a condition here would be enough.

@chavacava
Copy link
Collaborator

Hi @0xrgb, thanks for filling the issue and providing guidance to solve it.

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 a pull request may close this issue.

2 participants