idfm-api/types/region_fuzz.go

16 lines
179 B
Go
Raw Normal View History

2023-07-14 10:23:33 +00:00
// +build gofuzz
package types
func FuzzRegion(data []byte) int {
r := &Region{}
// Let's unmarshal
err := r.UnmarshalJSON(data)
if err != nil {
return 0
}
return 1
}