MCPcopy
hub / github.com/expr-lang/expr / NotSubset

Function NotSubset

internal/testify/require/require.go:1691–1699  ·  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. assert.NotSubset(t, [1, 3, 4], [1, 2]) assert.NotSubset(t, {"x": 1, "y": 2}, {"z": 3})

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

Source from the content-addressed store, hash-verified

1689// assert.NotSubset(t, [1, 3, 4], [1, 2])
1690// assert.NotSubset(t, {"x": 1, "y": 2}, {"z": 3})
1691func NotSubset(t TestingT, list interface{}, subset interface{}, msgAndArgs ...interface{}) {
1692 if h, ok := t.(tHelper); ok {
1693 h.Helper()
1694 }
1695 if assert.NotSubset(t, list, subset, msgAndArgs...) {
1696 return
1697 }
1698 t.FailNow()
1699}
1700
1701// NotSubsetf asserts that the specified list(array, slice...) or map does NOT
1702// contain all elements given in the specified subset list(array, slice...) or

Callers 1

NotSubsetMethod · 0.70

Calls 3

NotSubsetFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…