NotSubsetf 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. assert.NotSubsetf(t, [1, 3, 4], [1, 2], "error message %s",
(t TestingT, list interface{}, subset interface{}, msg string, args ...interface{})
| 721 | // assert.NotSubsetf(t, [1, 3, 4], {1: "one", 2: "two"}, "error message %s", "formatted") |
| 722 | // assert.NotSubsetf(t, {"x": 1, "y": 2}, ["z"], "error message %s", "formatted") |
| 723 | func NotSubsetf(t TestingT, list interface{}, subset interface{}, msg string, args ...interface{}) bool { |
| 724 | if h, ok := t.(tHelper); ok { |
| 725 | h.Helper() |
| 726 | } |
| 727 | return NotSubset(t, list, subset, append([]interface{}{msg}, args...)...) |
| 728 | } |
| 729 | |
| 730 | // NotZerof asserts that i is not the zero value for its type. |
| 731 | func NotZerof(t TestingT, i interface{}, msg string, args ...interface{}) bool { |
no test coverage detected