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

Method NotSubsetf

require/require_forward.go:1443–1448  ·  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

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

Callers

nothing calls this directly

Calls 2

NotSubsetfFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected