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

Method NotContainsf

assert/assertion_forward.go:1162–1167  ·  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

1160// a.NotContainsf(["Hello", "World"], "Earth", "error message %s", "formatted")
1161// a.NotContainsf({"Hello": "World"}, "Earth", "error message %s", "formatted")
1162func (a *Assertions) NotContainsf(s interface{}, contains interface{}, msg string, args ...interface{}) bool {
1163 if h, ok := a.t.(tHelper); ok {
1164 h.Helper()
1165 }
1166 return NotContainsf(a.t, s, contains, msg, args...)
1167}
1168
1169// NotElementsMatch asserts that the specified listA(array, slice...) is NOT equal to specified
1170// listB(array, slice...) ignoring the order of the elements. If there are duplicate elements,

Callers

nothing calls this directly

Calls 2

NotContainsfFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected