summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/42wim/go-ircevent/irc_test_fuzz.go
blob: 82202e1cad6b9e55d09afb06d199dc591a7a05f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// +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
}