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

Function makeExistence

internal/check/existence_test.go:10–24  ·  view source on GitHub ↗
(tokens []string)

Source from the content-addressed store, hash-verified

8)
9
10func makeExistence(tokens []string) (*Existence, error) {
11 def := baseCheck{"tokens": tokens}
12
13 cfg, err := core.NewConfig(&core.CLIFlags{})
14 if err != nil {
15 return nil, err
16 }
17
18 rule, err := NewExistence(cfg, def, "")
19 if err != nil {
20 return nil, err
21 }
22
23 return &rule, nil
24}
25
26func TestExistence(t *testing.T) {
27 rule, err := makeExistence([]string{"test"})

Callers 3

TestExistenceFunction · 0.85
FuzzExistenceInitFunction · 0.85
FuzzExistenceFunction · 0.85

Calls 2

NewConfigFunction · 0.92
NewExistenceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…