Skip to content

cmd/vet: enable fuzz checks in 'tests' analysis pass #46218

Open
@katiehockman

Description

@katiehockman

There are several things that vet can do to support native fuzzing. This issue tracks all of the potential checks that could be added.

Vet should fail if...

  • the inputs to any f.Add call don't match the ones in f.Fuzz
  • there is any code after f.Fuzz
  • the f.Fuzz function is missing a *testing.T as its first parameter
  • there is any call to a *testing.F method from within the f.Fuzz function

Metadata

Metadata

Assignees

Labels

AnalysisIssues related to static analysis (vet, x/tools/go/analysis)NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.ProposalProposal-AcceptedfuzzIssues related to native fuzzing support

Type

No type

Projects

Status

Accepted

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions