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{})
| 581 | // assert.NotContainsf(t, ["Hello", "World"], "Earth", "error message %s", "formatted") |
| 582 | // assert.NotContainsf(t, {"Hello": "World"}, "Earth", "error message %s", "formatted") |
| 583 | func NotContainsf(t TestingT, s interface{}, contains interface{}, msg string, args ...interface{}) bool { |
| 584 | if h, ok := t.(tHelper); ok { |
| 585 | h.Helper() |
| 586 | } |
| 587 | return NotContains(t, s, contains, append([]interface{}{msg}, args...)...) |
| 588 | } |
| 589 | |
| 590 | // NotElementsMatchf asserts that the specified listA(array, slice...) is NOT equal to specified |
| 591 | // listB(array, slice...) ignoring the order of the elements. If there are duplicate elements, |
no test coverage detected