Inspectopedia Help

Fuzzing is supported starting with Go 1.18

Reports presence of fuzz tests when Go SDK version is less than 1.18

Fuzz testing is a method of automated testing that involves a directed search for input data that may cause a program crash or expose invalid behavior. Go supports fuzz testing starting from Go 1.18.

Example of a fuzz test:

func Div(a, b int) int { return a / b } func FuzzDiv(f *testing.F) { f.Fuzz(func(t *testing.T, a, b int) { Div(a, b) // reports runtime error: integer divide by zero }) }

See Go Fuzzing for more information.

Inspection Details

Available in:

GoLand 2023.3

Plugin:

Go, 233.SNAPSHOT

Last modified: 13 July 2023