Subset asserts that the specified list(array, slice...) or map contains all elements given in the specified subset list(array, slice...) or map. a.Subset([1, 2, 3], [1, 2]) a.Subset({"x": 1, "y": 2}, {"x": 1})
(list interface{}, subset interface{}, msgAndArgs ...interface{})
| 1510 | // a.Subset([1, 2, 3], [1, 2]) |
| 1511 | // a.Subset({"x": 1, "y": 2}, {"x": 1}) |
| 1512 | func (a *Assertions) Subset(list interface{}, subset interface{}, msgAndArgs ...interface{}) bool { |
| 1513 | if h, ok := a.t.(tHelper); ok { |
| 1514 | h.Helper() |
| 1515 | } |
| 1516 | return Subset(a.t, list, subset, msgAndArgs...) |
| 1517 | } |
| 1518 | |
| 1519 | // Subsetf asserts that the specified list(array, slice...) or map contains all |
| 1520 | // elements given in the specified subset list(array, slice...) or map. |