NotContains asserts that the specified string, list(array, slice...) or map does NOT contain the specified substring or element. a.NotContains("Hello World", "Earth") a.NotContains(["Hello", "World"], "Earth") a.NotContains({"Hello": "World"}, "Earth")
(s interface{}, contains interface{}, msgAndArgs ...interface{})
| 1109 | // a.NotContains(["Hello", "World"], "Earth") |
| 1110 | // a.NotContains({"Hello": "World"}, "Earth") |
| 1111 | func (a *Assertions) NotContains(s interface{}, contains interface{}, msgAndArgs ...interface{}) bool { |
| 1112 | if h, ok := a.t.(tHelper); ok { |
| 1113 | h.Helper() |
| 1114 | } |
| 1115 | return NotContains(a.t, s, contains, msgAndArgs...) |
| 1116 | } |
| 1117 | |
| 1118 | // NotContainsf asserts that the specified string, list(array, slice...) or map does NOT contain the |
| 1119 | // specified substring or element. |