src/client/pkg/require/require.go
func ElementsEqual(tb testing.TB, expecteds interface{}, actuals interface{}, msgAndArgs ...interface{}) {
	tb.Helper()
	if err := ElementsEqualOrErr(expecteds, actuals); err != nil {
		fatal(tb, msgAndArgs, err.Error())
	}
}
func ElementsEqual(tb testing.TB, expecteds interface{}, actuals interface{}, msgAndArgs ...interface{}) {
	tb.Helper()
	if err := ElementsEqualOrErr(expecteds, actuals); err != nil {
		fatal(tb, msgAndArgs, err.Error())
	}
}
func ElementsEqual ( tb testing . TB , expecteds interface { } , actuals interface { } , msgAndArgs ... interface { } ) { tb . Helper ( ) if err := ElementsEqualOrErr ( expecteds , actuals ) ; err != nil { fatal ( tb , msgAndArgs , err . Error ( ) ) } }
// ElementsEqual checks that the elements of the slice "expecteds" are
// exactly the elements of the slice "actuals", ignoring order (i.e.
// setwise-equal, but respecting duplicates).
//
// Note that if the elements of 'expecteds' and 'actuals' are pointers,
// ElementsEqual will unwrap the pointers before comparing them, so that the
// output of e.g. ListCommit(), which returns []*pfs.Commit can easily be
// verfied.
//
// Also, treat 'nil' and the empty slice as equivalent, so that callers can
// pass 'nil' for 'expecteds'.
ElementsEqual checks that the elements of the slice expecteds are exactly the elements of the slice actuals ignoring order ( i . e . setwise - equal but respecting duplicates ) . Note that if the elements of expecteds and actuals are pointers ElementsEqual will unwrap the pointers before comparing them so that the output of e . g . ListCommit () which returns [] * pfs . Commit can easily be verfied . Also treat nil and the empty slice as equivalent so that callers can pass nil for expecteds .