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

Function NotContains

internal/testify/require/require.go:1407–1415  ·  view source on GitHub ↗

NotContains asserts that the specified string, list(array, slice...) or map does NOT contain the specified substring or element. assert.NotContains(t, "Hello World", "Earth") assert.NotContains(t, ["Hello", "World"], "Earth") assert.NotContains(t, {"Hello": "World"}, "Earth")

(t TestingT, s interface{}, contains interface{}, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

1405// assert.NotContains(t, ["Hello", "World"], "Earth")
1406// assert.NotContains(t, {"Hello": "World"}, "Earth")
1407func NotContains(t TestingT, s interface{}, contains interface{}, msgAndArgs ...interface{}) {
1408 if h, ok := t.(tHelper); ok {
1409 h.Helper()
1410 }
1411 if assert.NotContains(t, s, contains, msgAndArgs...) {
1412 return
1413 }
1414 t.FailNow()
1415}
1416
1417// NotContainsf asserts that the specified string, list(array, slice...) or map does NOT contain the
1418// specified substring or element.

Callers 2

NotContainsMethod · 0.70
TestNotContainsFunction · 0.70

Calls 3

NotContainsFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by 1

TestNotContainsFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…