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

Function NotContainsf

internal/testify/assert/assertion_format.go:564–569  ·  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

562// assert.NotContainsf(t, ["Hello", "World"], "Earth", "error message %s", "formatted")
563// assert.NotContainsf(t, {"Hello": "World"}, "Earth", "error message %s", "formatted")
564func NotContainsf(t TestingT, s interface{}, contains interface{}, msg string, args ...interface{}) bool {
565 if h, ok := t.(tHelper); ok {
566 h.Helper()
567 }
568 return NotContains(t, s, contains, append([]interface{}{msg}, args...)...)
569}
570
571// NotEmptyf asserts that the specified object is NOT empty. I.e. not nil, "", false, 0 or either
572// a slice or a channel with len == 0.

Callers 2

NotContainsfFunction · 0.92
NotContainsfMethod · 0.70

Calls 2

NotContainsFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…