Advanced
Go (Golang)
Q96 / 100
What is fuzz testing in Go 1.18+?
Correct! Well done.
Incorrect.
The correct answer is B) A built-in fuzzing engine (go test -fuzz=FuzzXxx) that generates and mutates inputs to find cases where the function panics or fails invariants
B
Correct Answer
A built-in fuzzing engine (go test -fuzz=FuzzXxx) that generates and mutates inputs to find cases where the function panics or fails invariants
Explanation
func FuzzReverse(f *testing.F) { f.Fuzz(func(t *testing.T, s string) { ... }) } — the fuzzer mutates s to find edge cases. Failing inputs are saved to testdata/fuzz/.
Progress
96/100