MCPcopy
hub / github.com/cli/cli / checkStringOmits

Function checkStringOmits

internal/docs/docs_test.go:107–112  ·  view source on GitHub ↗
(t *testing.T, got, expected string)

Source from the content-addressed store, hash-verified

105}
106
107func checkStringOmits(t *testing.T, got, expected string) {
108 t.Helper()
109 if strings.Contains(got, expected) {
110 t.Errorf("Expected to not contain: \n %v\nGot: %v", expected, got)
111 }
112}

Callers 6

TestGenMdDocFunction · 0.85
TestGenMdNoHiddenParentsFunction · 0.85
TestGenManDocFunction · 0.85

Calls 3

ContainsMethod · 0.80
HelperMethod · 0.65
ErrorfMethod · 0.65

Tested by

no test coverage detected