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

Method NotElementsMatchf

assert/assertion_forward.go:1196–1201  ·  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. a.

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

Source from the content-addressed store, hash-verified

1194//
1195// a.NotElementsMatchf([1, 2, 3], [1, 2, 4], "error message %s", "formatted") -> true
1196func (a *Assertions) NotElementsMatchf(listA interface{}, listB interface{}, msg string, args ...interface{}) bool {
1197 if h, ok := a.t.(tHelper); ok {
1198 h.Helper()
1199 }
1200 return NotElementsMatchf(a.t, listA, listB, msg, args...)
1201}
1202
1203// NotEmpty asserts that the specified object is NOT [Empty].
1204//

Callers

nothing calls this directly

Calls 2

NotElementsMatchfFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected