MCPcopy Index your code
hub / github.com/expr-lang/expr / Subsetf

Method Subsetf

internal/testify/assert/assertion_forward.go:1524–1529  ·  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

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")
1524func (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//

Callers

nothing calls this directly

Calls 2

SubsetfFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected