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'.
ElementsEqualOrErr returns nil if the elements of the slice "expecteds" are exactly the elements of the slice "actuals", ignoring order (i.e. setwise-equal), and an error otherwise.
Unlike other require.* functions, this returns an error, so that if the caller is polling e.g. ListCommit or ListAdmins, they can wrap ElementsEqualOrErr in a retry loop.
Also, like ElementsEqual, treat 'nil' and the empty slice as equivalent (for convenience)
ElementsEqualUnderFn checks that the elements of the slice 'expecteds' are exactly the images of every element of the slice 'actuals' under 'f', ignoring order (i.e. 'expecteds' and 'map(f, actuals)' are setwise-equal, but respecting duplicates). This is useful for cases where ElementsEqual doesn't quite work, e.g. because the type in 'expecteds'/'actuals' contains a pointer, or 'actuals' contains superfluous data which you wish to discard
Like ElementsEqual, treat 'nil' and the empty slice as equivalent (for convenience)
Equal checks equality of two values.
EqualOneOf checks if a value is equal to one of the elements of a slice. Note that if expecteds and actual are a slice of pointers and a pointer respectively, then the pointers are unwrapped before comparison (so this functions works for e.g. *pfs.Commit and *pfs.Commit)
False checks a value is false.
Matches checks that a string matches a regular-expression.
Nil checks a value is nil.
NoError checks for no error.
NoErrorWithinT checks that 'f' finishes within time 't' and does not emit an error
NoErrorWithinTRetry checks that 'f' finishes within time 't' and does not emit an error. Unlike NoErrorWithinT if f does error, it will retry it.
NoneEquals checks one element of a slice equals a value. Like EqualsOneOf, NoneEquals unwraps pointers.
NotEqual checks inequality of two values.
NotNil checks a value is non-nil.
OneOfEquals checks whether one element of a slice equals a value. Like EqualsOneOf, OneOfEquals unwraps pointers
OneOfMatches checks whether one element of a slice matches a regular-expression.
True checks a value is true.
YesError checks for an error.
YesPanic checks that the callback panics.