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

Method NotSubsetf

assert/assertion_forward.go:1442–1447  ·  view source on GitHub ↗

NotSubsetf asserts that the list (array, slice, or map) does NOT contain all elements given in the subset (array, slice, or map). Map elements are key-value pairs unless compared with an array or slice where only the map key is evaluated. a.NotSubsetf([1, 3, 4], [1, 2], "error message %s", "format

(list interface{}, subset interface{}, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

1440// a.NotSubsetf([1, 3, 4], {1: "one", 2: "two"}, "error message %s", "formatted")
1441// a.NotSubsetf({"x": 1, "y": 2}, ["z"], "error message %s", "formatted")
1442func (a *Assertions) NotSubsetf(list interface{}, subset interface{}, msg string, args ...interface{}) bool {
1443 if h, ok := a.t.(tHelper); ok {
1444 h.Helper()
1445 }
1446 return NotSubsetf(a.t, list, subset, msg, args...)
1447}
1448
1449// NotZero asserts that i is not the zero value for its type.
1450func (a *Assertions) NotZero(i interface{}, msgAndArgs ...interface{}) bool {

Callers

nothing calls this directly

Calls 2

NotSubsetfFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected