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

Method NotContains

internal/testify/assert/assertion_forward.go:1111–1116  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

1109// a.NotContains(["Hello", "World"], "Earth")
1110// a.NotContains({"Hello": "World"}, "Earth")
1111func (a *Assertions) NotContains(s interface{}, contains interface{}, msgAndArgs ...interface{}) bool {
1112 if h, ok := a.t.(tHelper); ok {
1113 h.Helper()
1114 }
1115 return NotContains(a.t, s, contains, msgAndArgs...)
1116}
1117
1118// NotContainsf asserts that the specified string, list(array, slice...) or map does NOT contain the
1119// specified substring or element.

Callers 1

TestNotContainsWrapperFunction · 0.45

Calls 2

NotContainsFunction · 0.70
HelperMethod · 0.45

Tested by 1

TestNotContainsWrapperFunction · 0.36