MCPcopy Create free account
hub / github.com/expr-lang/expr / Subsetf

Method Subsetf

internal/testify/require/require_forward.go:1526–1531  ·  view source on GitHub ↗

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{})

Source from the content-addressed store, hash-verified

1524// a.Subsetf([1, 2, 3], [1, 2], "error message %s", "formatted")
1525// a.Subsetf({"x": 1, "y": 2}, {"x": 1}, "error message %s", "formatted")
1526func (a *Assertions) Subsetf(list interface{}, subset interface{}, msg string, args ...interface{}) {
1527 if h, ok := a.t.(tHelper); ok {
1528 h.Helper()
1529 }
1530 Subsetf(a.t, list, subset, msg, args...)
1531}
1532
1533// True asserts that the specified value is true.
1534//

Callers

nothing calls this directly

Calls 2

SubsetfFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected