MCPcopy Index your code
hub / github.com/devopsctl/gitlabctl / assertOutContains

Function assertOutContains

cmd/helpers_for_test.go:213–223  ·  view source on GitHub ↗
(t *testing.T, s string, contains ...string)

Source from the content-addressed store, hash-verified

211}
212
213func assertOutContains(t *testing.T, s string, contains ...string) {
214 for _, c := range contains {
215 if !strings.Contains(s, c) {
216 t.Fatal(
217 emoji.Sprintf("\n:x:output is expected to contain '%s',"+
218 "\ngot output: %s", c, s))
219 } else {
220 tInfo(emoji.Sprintf(":white_check_mark:output assertion passed! it contains: %s", c))
221 }
222 }
223}

Callers 7

TestDescBranchCmdFunction · 0.85
TestNewUserFunction · 0.85
TestProtectBranchFunction · 0.85
TestDeleteProjectHookFunction · 0.85
TestDeleteAllMembersFunction · 0.85
TestGetBranchCmdFunction · 0.85
TestNewBranchFunction · 0.85

Calls 1

tInfoFunction · 0.85

Tested by

no test coverage detected