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

Method NotSubset

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

1425// a.NotSubset([1, 3, 4], {1: "one", 2: "two"})
1426// a.NotSubset({"x": 1, "y": 2}, ["z"])
1427func (a *Assertions) NotSubset(list interface{}, subset interface{}, msgAndArgs ...interface{}) {
1428 if h, ok := a.t.(tHelper); ok {
1429 h.Helper()
1430 }
1431 NotSubset(a.t, list, subset, msgAndArgs...)
1432}
1433
1434// NotSubsetf asserts that the list (array, slice, or map) does NOT contain all
1435// 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