MCPcopy
hub / github.com/stretchr/testify / NotContainsf

Function NotContainsf

assert/assertion_format.go:583–588  ·  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

581// assert.NotContainsf(t, ["Hello", "World"], "Earth", "error message %s", "formatted")
582// assert.NotContainsf(t, {"Hello": "World"}, "Earth", "error message %s", "formatted")
583func NotContainsf(t TestingT, s interface{}, contains interface{}, msg string, args ...interface{}) bool {
584 if h, ok := t.(tHelper); ok {
585 h.Helper()
586 }
587 return NotContains(t, s, contains, append([]interface{}{msg}, args...)...)
588}
589
590// NotElementsMatchf asserts that the specified listA(array, slice...) is NOT equal to specified
591// listB(array, slice...) ignoring the order of the elements. If there are duplicate elements,

Callers 2

NotContainsfFunction · 0.92
NotContainsfMethod · 0.70

Calls 2

NotContainsFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected