(t *testing.T)
| 200 | } |
| 201 | |
| 202 | func TestNotContainsWrapper(t *testing.T) { |
| 203 | |
| 204 | assert := New(new(testing.T)) |
| 205 | list := []string{"Foo", "Bar"} |
| 206 | |
| 207 | if !assert.NotContains("Hello World", "Hello!") { |
| 208 | t.Error("NotContains should return true: \"Hello World\" does not contain \"Hello!\"") |
| 209 | } |
| 210 | if assert.NotContains("Hello World", "Hello") { |
| 211 | t.Error("NotContains should return false: \"Hello World\" contains \"Hello\"") |
| 212 | } |
| 213 | |
| 214 | if !assert.NotContains(list, "Foo!") { |
| 215 | t.Error("NotContains should return true: \"[\"Foo\", \"Bar\"]\" does not contain \"Foo!\"") |
| 216 | } |
| 217 | if assert.NotContains(list, "Foo") { |
| 218 | t.Error("NotContains should return false: \"[\"Foo\", \"Bar\"]\" contains \"Foo\"") |
| 219 | } |
| 220 | |
| 221 | } |
| 222 | |
| 223 | func TestConditionWrapper(t *testing.T) { |
| 224 |
nothing calls this directly
no test coverage detected
searching dependent graphs…