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