-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Open
Labels
FeatureRequestIssues asking for a new feature that does not need a proposal.Issues asking for a new feature that does not need a proposal.NeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.Feedback is required from experts, contributors, and/or the community before a change can be made.fuzzIssues related to native fuzzing supportIssues related to native fuzzing support
Milestone
Description
It would be nice to be able to define sub fuzz targets like subtests and sub-benchmarks. Example:
for _, fc := range Cases {
f.Run(fc.Name, func(f *testing.F) {
f.Add(...)
f.Fuzz(func(t *testing.T, data []byte) {
t.Parallel()
fz := fuzz.NewFromGoFuzz(data).Funcs(exfuzz.FuzzFuncs()...).Funcs(vanguardfz.FuzzFuncs()...)
*r := fc.r
fz.Fuzz(&r)
u := fc.Permissions
res, det, err := assert[tc.Method].Eval(map[string]interface{}{
"r": r,
"u": u,
})
// Assertions
})
})
}This would be very much useful to fuzz functions with generic but defined data structures.
Jorropo and bjohnson-va
Metadata
Metadata
Assignees
Labels
FeatureRequestIssues asking for a new feature that does not need a proposal.Issues asking for a new feature that does not need a proposal.NeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.Feedback is required from experts, contributors, and/or the community before a change can be made.fuzzIssues related to native fuzzing supportIssues related to native fuzzing support
Type
Projects
Status
No status