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{})
| 562 | // assert.NotContainsf(t, ["Hello", "World"], "Earth", "error message %s", "formatted") |
| 563 | // assert.NotContainsf(t, {"Hello": "World"}, "Earth", "error message %s", "formatted") |
| 564 | func NotContainsf(t TestingT, s interface{}, contains interface{}, msg string, args ...interface{}) bool { |
| 565 | if h, ok := t.(tHelper); ok { |
| 566 | h.Helper() |
| 567 | } |
| 568 | return NotContains(t, s, contains, append([]interface{}{msg}, args...)...) |
| 569 | } |
| 570 | |
| 571 | // NotEmptyf asserts that the specified object is NOT empty. I.e. not nil, "", false, 0 or either |
| 572 | // a slice or a channel with len == 0. |
no test coverage detected
searching dependent graphs…