MCPcopy
hub / github.com/cli/cli / checkStringContains

Function checkStringContains

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

Source from the content-addressed store, hash-verified

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

Callers 11

TestGenMdDocFunction · 0.85
TestGenMdNoHiddenParentsFunction · 0.85
TestGenMdAliasesFunction · 0.85
TestGenMdJSONFieldsFunction · 0.85
TestGenManDocFunction · 0.85
TestGenManAliasesFunction · 0.85
TestGenManJSONFieldsFunction · 0.85
TestGenManDocExitCodesFunction · 0.85

Calls 3

ContainsMethod · 0.80
HelperMethod · 0.65
ErrorfMethod · 0.65

Tested by

no test coverage detected