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

Function checkStringOmits

doc/cmd_test.go:101–105  ·  view source on GitHub ↗
(t *testing.T, got, expected string)

Source from the content-addressed store, hash-verified

99}
100
101func checkStringOmits(t *testing.T, got, expected string) {
102 if strings.Contains(got, expected) {
103 t.Errorf("Expected to not contain: \n %v\nGot: %v", expected, got)
104 }
105}

Callers 11

TestGenMdDocFunction · 0.70
TestGenMdNoHiddenParentsFunction · 0.70
TestGenMdNoTagFunction · 0.70
TestGenManDocFunction · 0.70
TestGenManNoGenTagFunction · 0.70
TestGenYamlNoTagFunction · 0.70
TestGenRSTDocFunction · 0.70
TestGenRSTNoTagFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected