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

Method NotContainsf

internal/testify/assert/assertion_forward.go:1124–1129  ·  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

1122// a.NotContainsf(["Hello", "World"], "Earth", "error message %s", "formatted")
1123// a.NotContainsf({"Hello": "World"}, "Earth", "error message %s", "formatted")
1124func (a *Assertions) NotContainsf(s interface{}, contains interface{}, msg string, args ...interface{}) bool {
1125 if h, ok := a.t.(tHelper); ok {
1126 h.Helper()
1127 }
1128 return NotContainsf(a.t, s, contains, msg, args...)
1129}
1130
1131// NotEmpty asserts that the specified object is NOT empty. I.e. not nil, "", false, 0 or either
1132// 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