mirror of
https://github.com/resmoio/kubernetes-event-exporter.git
synced 2026-08-24 01:06:22 +00:00
17 lines
211 B
Go
17 lines
211 B
Go
// +build gofuzz
|
|
|
|
package snappy
|
|
|
|
func Fuzz(data []byte) int {
|
|
decode, err := Decode(data)
|
|
if decode == nil && err == nil {
|
|
panic("nil error with nil result")
|
|
}
|
|
|
|
if err != nil {
|
|
return 0
|
|
}
|
|
|
|
return 1
|
|
}
|