idfm-api/types/journeys_fuzz.go

16 lines
181 B
Go

// +build gofuzz
package types
func FuzzJourney(data []byte) int {
j := &Journey{}
// Let's unmarshal
err := j.UnmarshalJSON(data)
if err != nil {
return 0
}
return 1
}