5 ms·
Any details about how the mutator works? The design doc hints at a “coverage-based” mutator, but I can’t see anything specific about how it works or even if tha
by CGamesPlay 5y ago
Any details about how the mutator works? The design doc hints at a “coverage-based” mutator, but I can’t see anything specific about how it works or even if that was implemented.
- jrockway 5y agoHere's the plan for the mutator: https://go.googlesource.com/proposal/+/master/design/draft-fuzzing.md#fuzzing-engine-and-mutator https://go.googlesource.com/proposal/+/master/design/draft-f...
- greyface- 5y agoAnd the code: https://github.com/golang/go/blob/dev.fuzz/src/internal/fuzz/mutator.go https://github.com/golang/go/blob/dev.fuzz/src/internal/fuzz... Edit: and here's the mechanism that guides mutations towards increased coverage: https://github.com/golang/go/blob/5542c10fbf19cb199d1659c18963f9ed83570746/src/internal/fuzz/fuzz.go#L244 https://github.com/golang/go/blob/5542c10fbf19cb199d1659c189...