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

Method NotSubset

assert/assertion_forward.go:1426–1431  ·  view source on GitHub ↗

NotSubset 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.NotSubset([1, 3, 4], [1, 2]) a.NotSubset({"x": 1, "y": 2}

(list interface{}, subset interface{}, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

1424// a.NotSubset([1, 3, 4], {1: "one", 2: "two"})
1425// a.NotSubset({"x": 1, "y": 2}, ["z"])
1426func (a *Assertions) NotSubset(list interface{}, subset interface{}, msgAndArgs ...interface{}) bool {
1427 if h, ok := a.t.(tHelper); ok {
1428 h.Helper()
1429 }
1430 return NotSubset(a.t, list, subset, msgAndArgs...)
1431}
1432
1433// NotSubsetf asserts that the list (array, slice, or map) does NOT contain all
1434// elements given in the subset (array, slice, or map).

Callers

nothing calls this directly

Calls 2

NotSubsetFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected