(f *testing.F)
| 53 | } |
| 54 | |
| 55 | func FuzzExistence(f *testing.F) { |
| 56 | rule, err := makeExistence([]string{"test"}) |
| 57 | if err != nil { |
| 58 | f.Fatal(err) |
| 59 | } |
| 60 | |
| 61 | cfg, err := core.NewConfig(&core.CLIFlags{}) |
| 62 | if err != nil { |
| 63 | f.Fatal(err) |
| 64 | } |
| 65 | |
| 66 | file, err := core.NewFile("", cfg) |
| 67 | if err != nil { |
| 68 | f.Fatal(err) |
| 69 | } |
| 70 | |
| 71 | f.Add("hello") |
| 72 | f.Fuzz(func(_ *testing.T, s string) { |
| 73 | _, _ = rule.Run(nlp.NewBlock("", s, ""), file, cfg) |
| 74 | }) |
| 75 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…