3
0
mirror of https://github.com/42wim/matterbridge.git synced 2024-12-25 20:52:37 +01:00
matterbridge/vendor/github.com/thoj/go-ircevent/irc_test_fuzz.go

15 lines
240 B
Go
Raw Normal View History

2016-04-10 23:39:38 +02:00
// +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
}