You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
226 B

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