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

Method Subset

internal/testify/assert/assertion_forward.go:1512–1517  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1510// a.Subset([1, 2, 3], [1, 2])
1511// a.Subset({"x": 1, "y": 2}, {"x": 1})
1512func (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.

Callers

nothing calls this directly

Calls 2

SubsetFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected