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

Function NotSubsetf

require/require.go:1818–1826  ·  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. require.NotSubsetf(t, [1, 3, 4], [1, 2], "error message %s"

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

Source from the content-addressed store, hash-verified

1816// require.NotSubsetf(t, [1, 3, 4], {1: "one", 2: "two"}, "error message %s", "formatted")
1817// require.NotSubsetf(t, {"x": 1, "y": 2}, ["z"], "error message %s", "formatted")
1818func NotSubsetf(t TestingT, list interface{}, subset interface{}, msg string, args ...interface{}) {
1819 if h, ok := t.(tHelper); ok {
1820 h.Helper()
1821 }
1822 if assert.NotSubsetf(t, list, subset, msg, args...) {
1823 return
1824 }
1825 t.FailNow()
1826}
1827
1828// NotZero asserts that i is not the zero value for its type.
1829func NotZero(t TestingT, i interface{}, msgAndArgs ...interface{}) {

Callers 1

NotSubsetfMethod · 0.70

Calls 3

NotSubsetfFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected