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{})
| 1689 | // assert.NotSubset(t, [1, 3, 4], [1, 2]) |
| 1690 | // assert.NotSubset(t, {"x": 1, "y": 2}, {"z": 3}) |
| 1691 | func 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 |