MCPcopy Index your code
hub / github.com/expr-lang/expr / TestNotContainsWrapper

Function TestNotContainsWrapper

internal/testify/assert/forward_assertions_test.go:202–221  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

200}
201
202func 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
223func TestConditionWrapper(t *testing.T) {
224

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
NotContainsMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…