1 package fuzz 2 3 import "github.com/andybalholm/cascadia" 4 5 // Fuzz is the entrypoint used by the go-fuzz framework 6 func Fuzz(data []byte) int { 7 sel, err := cascadia.Compile(string(data)) 8 if err != nil { 9 if sel != nil { 10 panic("sel != nil on error") 11 } 12 return 0 13 } 14 return 1 15 } 16