go-ircevent/irc_test_fuzz.go
2015-07-31 21:33:36 +02:00

15 lines
240 B
Go

// +build gofuzz
package irc
func Fuzz(data []byte) int {
b := bytes.NewBuffer(data)
event, err := parseToEvent(b.String())
if err == nil {
irc := IRC("go-eventirc", "go-eventirc")
irc.RunCallbacks(event)
return 1
}
return 0
}