NotContainsf asserts that the specified string, list(array, slice...) or map does NOT contain the specified substring or element. assert.NotContainsf(t, "Hello World", "Earth", "error message %s", "formatted") assert.NotContainsf(t, ["Hello", "World"], "Earth", "error message %s", "formatted") a
(t TestingT, s interface{}, contains interface{}, msg string, args ...interface{})
| 1421 | // assert.NotContainsf(t, ["Hello", "World"], "Earth", "error message %s", "formatted") |
| 1422 | // assert.NotContainsf(t, {"Hello": "World"}, "Earth", "error message %s", "formatted") |
| 1423 | func NotContainsf(t TestingT, s interface{}, contains interface{}, msg string, args ...interface{}) { |
| 1424 | if h, ok := t.(tHelper); ok { |
| 1425 | h.Helper() |
| 1426 | } |
| 1427 | if assert.NotContainsf(t, s, contains, msg, args...) { |
| 1428 | return |
| 1429 | } |
| 1430 | t.FailNow() |
| 1431 | } |
| 1432 | |
| 1433 | // NotEmpty asserts that the specified object is NOT empty. I.e. not nil, "", false, 0 or either |
| 1434 | // a slice or a channel with len == 0. |
no test coverage detected
searching dependent graphs…