NotSubsetf 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.NotSubsetf(t, [1, 3, 4], [1, 2], "error message %s", "formatted") assert.NotSubsetf(t, {"x": 1, "y": 2}, {"z": 3}, "error message %s"
(t TestingT, list interface{}, subset interface{}, msg string, args ...interface{})
| 1705 | // assert.NotSubsetf(t, [1, 3, 4], [1, 2], "error message %s", "formatted") |
| 1706 | // assert.NotSubsetf(t, {"x": 1, "y": 2}, {"z": 3}, "error message %s", "formatted") |
| 1707 | func NotSubsetf(t TestingT, list interface{}, subset interface{}, msg string, args ...interface{}) { |
| 1708 | if h, ok := t.(tHelper); ok { |
| 1709 | h.Helper() |
| 1710 | } |
| 1711 | if assert.NotSubsetf(t, list, subset, msg, args...) { |
| 1712 | return |
| 1713 | } |
| 1714 | t.FailNow() |
| 1715 | } |
| 1716 | |
| 1717 | // NotZero asserts that i is not the zero value for its type. |
| 1718 | func NotZero(t TestingT, i interface{}, msgAndArgs ...interface{}) { |
no test coverage detected
searching dependent graphs…