MCPcopy Create free account
hub / github.com/expr-lang/expr / NotContainsf

Method NotContainsf

internal/testify/require/require_forward.go:1126–1131  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

1124// a.NotContainsf(["Hello", "World"], "Earth", "error message %s", "formatted")
1125// a.NotContainsf({"Hello": "World"}, "Earth", "error message %s", "formatted")
1126func (a *Assertions) NotContainsf(s interface{}, contains interface{}, msg string, args ...interface{}) {
1127 if h, ok := a.t.(tHelper); ok {
1128 h.Helper()
1129 }
1130 NotContainsf(a.t, s, contains, msg, args...)
1131}
1132
1133// NotEmpty asserts that the specified object is NOT empty. I.e. not nil, "", false, 0 or either
1134// a slice or a channel with len == 0.

Callers

nothing calls this directly

Calls 2

NotContainsfFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected