MCPcopy Create free account
hub / github.com/vale-cli/vale / FuzzExistence

Function FuzzExistence

internal/check/existence_test.go:55–75  ·  view source on GitHub ↗
(f *testing.F)

Source from the content-addressed store, hash-verified

53}
54
55func 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}

Callers

nothing calls this directly

Calls 5

NewConfigFunction · 0.92
NewFileFunction · 0.92
NewBlockFunction · 0.92
makeExistenceFunction · 0.85
RunMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…