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{})
| 1147 | // a.NotContains(["Hello", "World"], "Earth") |
| 1148 | // a.NotContains({"Hello": "World"}, "Earth") |
| 1149 | func (a *Assertions) NotContains(s interface{}, contains interface{}, msgAndArgs ...interface{}) bool { |
| 1150 | if h, ok := a.t.(tHelper); ok { |
| 1151 | h.Helper() |
| 1152 | } |
| 1153 | return NotContains(a.t, s, contains, msgAndArgs...) |
| 1154 | } |
| 1155 | |
| 1156 | // NotContainsf asserts that the specified string, list(array, slice...) or map does NOT contain the |
| 1157 | // specified substring or element. |