FuzzUnmarshal tests unmarshaling.
(fuzz []byte)
| 8 | |
| 9 | // FuzzUnmarshal tests unmarshaling. |
| 10 | func FuzzUnmarshal(fuzz []byte) int { |
| 11 | data := &Data{} |
| 12 | err := data.UnmarshalJSON(fuzz) |
| 13 | if err != nil { |
| 14 | return 0 |
| 15 | } |
| 16 | _, err = data.MarshalJSON() |
| 17 | if err != nil { |
| 18 | return 0 |
| 19 | } |
| 20 | return 1 |
| 21 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…