Skip to content

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

Closed
@0xrgb

Description

@0xrgb

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions