MCPcopy Create free account
hub / github.com/stretchr/testify / NotSubset

Method NotSubset

assert/assertion_forward.go:1387–1392  ·  view source on GitHub ↗

NotSubset asserts that the specified list(array, slice...) or map does NOT contain all elements given in the specified subset list(array, slice...) or map. a.NotSubset([1, 3, 4], [1, 2]) a.NotSubset({"x": 1, "y": 2}, {"z": 3})

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

Source from the content-addressed store, hash-verified

1385// a.NotSubset([1, 3, 4], [1, 2])
1386// a.NotSubset({"x": 1, "y": 2}, {"z": 3})
1387func (a *Assertions) NotSubset(list interface{}, subset interface{}, msgAndArgs ...interface{}) bool {
1388 if h, ok := a.t.(tHelper); ok {
1389 h.Helper()
1390 }
1391 return NotSubset(a.t, list, subset, msgAndArgs...)
1392}
1393
1394// NotSubsetf asserts that the specified list(array, slice...) or map does NOT
1395// contain all elements given in the specified subset list(array, slice...) or

Callers

nothing calls this directly

Calls 2

NotSubsetFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected