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

Method NotElementsMatch

require/require_forward.go:1180–1185  ·  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

1178//
1179// a.NotElementsMatch([1, 2, 3], [1, 2, 4]) -> true
1180func (a *Assertions) NotElementsMatch(listA interface{}, listB interface{}, msgAndArgs ...interface{}) {
1181 if h, ok := a.t.(tHelper); ok {
1182 h.Helper()
1183 }
1184 NotElementsMatch(a.t, listA, listB, msgAndArgs...)
1185}
1186
1187// NotElementsMatchf asserts that the specified listA(array, slice...) is NOT equal to specified
1188// 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