SequencingPolicy
public enum SequencingPolicy
Sequencing policy - in which order Given would be resolved. Pleas ehve in mind that this policy is applied ONLY after first ordering (based on how explicit is stub) is done.
lastWrittenResolvedFirst
: Default policy. Last given overrides previous, if they are both with same generocity levelinWritingOrder
: Givens would be recalled in order of generocity, respecting writing order (first line resolved first)
-
Default policy. Last given overrides previous, if they are both with same generocity level
Declaration
Swift
case lastWrittenResolvedFirst
-
Givens would be recalled in order of generocity, respecting writing order (first line resolved first)
Declaration
Swift
case inWritingOrder
-
[Internal] Sorts stub return values / errors throw with respect to ordering rule and policy
Declaration
Swift
public func sorted<T>(_ array: [T], by order: (T, T) -> Bool) -> [T]
Parameters
array
Array to sort
order
Default ordering closure
Return Value
Sorted with respoect to ordering and policy