Subsetf asserts that the specified list(array, slice...) or map contains all elements given in the specified subset list(array, slice...) or map. a.Subsetf([1, 2, 3], [1, 2], "error message %s", "formatted") a.Subsetf({"x": 1, "y": 2}, {"x": 1}, "error message %s", "formatted")
(list interface{}, subset interface{}, msg string, args ...interface{})
| 1522 | // a.Subsetf([1, 2, 3], [1, 2], "error message %s", "formatted") |
| 1523 | // a.Subsetf({"x": 1, "y": 2}, {"x": 1}, "error message %s", "formatted") |
| 1524 | func (a *Assertions) Subsetf(list interface{}, subset interface{}, msg string, args ...interface{}) bool { |
| 1525 | if h, ok := a.t.(tHelper); ok { |
| 1526 | h.Helper() |
| 1527 | } |
| 1528 | return Subsetf(a.t, list, subset, msg, args...) |
| 1529 | } |
| 1530 | |
| 1531 | // True asserts that the specified value is true. |
| 1532 | // |