(t *testing.T)
| 221 | } |
| 222 | |
| 223 | func TestNotContainsWrapper(t *testing.T) { |
| 224 | t.Parallel() |
| 225 | |
| 226 | assert := New(new(testing.T)) |
| 227 | list := []string{"Foo", "Bar"} |
| 228 | |
| 229 | if !assert.NotContains("Hello World", "Hello!") { |
| 230 | t.Error("NotContains should return true: \"Hello World\" does not contain \"Hello!\"") |
| 231 | } |
| 232 | if assert.NotContains("Hello World", "Hello") { |
| 233 | t.Error("NotContains should return false: \"Hello World\" contains \"Hello\"") |
| 234 | } |
| 235 | |
| 236 | if !assert.NotContains(list, "Foo!") { |
| 237 | t.Error("NotContains should return true: \"[\"Foo\", \"Bar\"]\" does not contain \"Foo!\"") |
| 238 | } |
| 239 | if assert.NotContains(list, "Foo") { |
| 240 | t.Error("NotContains should return false: \"[\"Foo\", \"Bar\"]\" contains \"Foo\"") |
| 241 | } |
| 242 | |
| 243 | } |
| 244 | |
| 245 | func TestConditionWrapper(t *testing.T) { |
| 246 | t.Parallel() |
nothing calls this directly
no test coverage detected