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

Method NotElementsMatch

assert/assertion_forward.go:1179–1184  ·  view source on GitHub ↗

NotElementsMatch 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.N

(listA interface{}, listB interface{}, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

1177//
1178// a.NotElementsMatch([1, 2, 3], [1, 2, 4]) -> true
1179func (a *Assertions) NotElementsMatch(listA interface{}, listB interface{}, msgAndArgs ...interface{}) bool {
1180 if h, ok := a.t.(tHelper); ok {
1181 h.Helper()
1182 }
1183 return NotElementsMatch(a.t, listA, listB, msgAndArgs...)
1184}
1185
1186// NotElementsMatchf asserts that the specified listA(array, slice...) is NOT equal to specified
1187// listB(array, slice...) ignoring the order of the elements. If there are duplicate elements,

Callers

nothing calls this directly

Calls 2

NotElementsMatchFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected