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

Function NotContainsf

internal/testify/require/require.go:1423–1431  ·  view source on GitHub ↗

NotContainsf asserts that the specified string, list(array, slice...) or map does NOT contain the specified substring or element. assert.NotContainsf(t, "Hello World", "Earth", "error message %s", "formatted") assert.NotContainsf(t, ["Hello", "World"], "Earth", "error message %s", "formatted") a

(t TestingT, s interface{}, contains interface{}, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

1421// assert.NotContainsf(t, ["Hello", "World"], "Earth", "error message %s", "formatted")
1422// assert.NotContainsf(t, {"Hello": "World"}, "Earth", "error message %s", "formatted")
1423func NotContainsf(t TestingT, s interface{}, contains interface{}, msg string, args ...interface{}) {
1424 if h, ok := t.(tHelper); ok {
1425 h.Helper()
1426 }
1427 if assert.NotContainsf(t, s, contains, msg, args...) {
1428 return
1429 }
1430 t.FailNow()
1431}
1432
1433// NotEmpty asserts that the specified object is NOT empty. I.e. not nil, "", false, 0 or either
1434// a slice or a channel with len == 0.

Callers 1

NotContainsfMethod · 0.70

Calls 3

NotContainsfFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…