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

Method NotSubsetf

internal/testify/require/require_forward.go:1350–1355  ·  view source on GitHub ↗

NotSubsetf asserts that the specified list(array, slice...) or map does NOT contain all elements given in the specified subset list(array, slice...) or map. a.NotSubsetf([1, 3, 4], [1, 2], "error message %s", "formatted") a.NotSubsetf({"x": 1, "y": 2}, {"z": 3}, "error message %s", "formatted")

(list interface{}, subset interface{}, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

1348// a.NotSubsetf([1, 3, 4], [1, 2], "error message %s", "formatted")
1349// a.NotSubsetf({"x": 1, "y": 2}, {"z": 3}, "error message %s", "formatted")
1350func (a *Assertions) NotSubsetf(list interface{}, subset interface{}, msg string, args ...interface{}) {
1351 if h, ok := a.t.(tHelper); ok {
1352 h.Helper()
1353 }
1354 NotSubsetf(a.t, list, subset, msg, args...)
1355}
1356
1357// NotZero asserts that i is not the zero value for its type.
1358func (a *Assertions) NotZero(i interface{}, msgAndArgs ...interface{}) {

Callers

nothing calls this directly

Calls 2

NotSubsetfFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected