MCPcopy
hub / github.com/stretchr/testify / NotElementsMatchf

Function NotElementsMatchf

assert/assertion_format.go:600–605  ·  view source on GitHub ↗

NotElementsMatchf asserts that the specified listA(array, slice...) is NOT equal to specified listB(array, slice...) ignoring the order of the elements. If there are duplicate elements, the number of appearances of each of them in both lists should not match. This is an inverse of ElementsMatch. as

(t TestingT, listA interface{}, listB interface{}, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

598//
599// assert.NotElementsMatchf(t, [1, 2, 3], [1, 2, 4], "error message %s", "formatted") -> true
600func NotElementsMatchf(t TestingT, listA interface{}, listB interface{}, msg string, args ...interface{}) bool {
601 if h, ok := t.(tHelper); ok {
602 h.Helper()
603 }
604 return NotElementsMatch(t, listA, listB, append([]interface{}{msg}, args...)...)
605}
606
607// NotEmptyf asserts that the specified object is NOT [Empty].
608//

Callers 2

NotElementsMatchfFunction · 0.92
NotElementsMatchfMethod · 0.70

Calls 2

NotElementsMatchFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected