(t *testing.T, s string, contains ...string)
| 211 | } |
| 212 | |
| 213 | func 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 | } |
no test coverage detected