github.com/streamdal/segmentio-kafka-go@v0.4.47-streamdal/compress/snappy/go-xerial-snappy/fuzz.go (about) 1 // +build gofuzz 2 3 package snappy 4 5 func Fuzz(data []byte) int { 6 decode, err := Decode(data) 7 if decode == nil && err == nil { 8 panic("nil error with nil result") 9 } 10 11 if err != nil { 12 return 0 13 } 14 15 return 1 16 }