MCPcopy
hub / github.com/spf13/cobra / checkOmit

Function checkOmit

bash_completions_test.go:27–31  ·  view source on GitHub ↗
(t *testing.T, found, unexpected string)

Source from the content-addressed store, hash-verified

25)
26
27func checkOmit(t *testing.T, found, unexpected string) {
28 if strings.Contains(found, unexpected) {
29 t.Errorf("Got: %q\nBut should not have!\n", unexpected)
30 }
31}
32
33func check(t *testing.T, found, expected string) {
34 if !strings.Contains(found, expected) {

Calls

no outgoing calls

Tested by

no test coverage detected