Swift Mocking Library
MockEquatable
has been renamed to Matcher
to more closely express functionality provided (there is a typealias for backwards compatibility but it might still be breaking in some cases)Mock.storage
type has been changed from [RecordedCall]
to Storage
to better support future features (like e.g. the recording of return values)AnyMatcher()
This is a minor feature release containing following changes:
This is a minor maintenance release containing two small changes:
UInt
MockEquatable
(thanks @karolus)ClosureMatcher
and NotMatcher
(see here for details)The motivation behind this release is to simplify the usage of Mimus by limiting the amount of chrome you need to add to your application. Specifically recording values no longer requires them to implement MockEquatable
. Furthermore you can use IdenticalTo
and EqualTo
matchers to compare AnyObject
s and Equatable
types without the need to implement MockEquatable
by them.
In general this has significantly decreased the amount of additional code we had to write for our objects to make them compatible with Mimus.
MockEquatable
equation function to equalTo(other: Any)
. This allows to record any type of value, not just types that conform to MockEquatable
, greatly increasing how versatile this framework isInstanceOf<T>
matcherEqualTo
and IdenticalTo
matchersMockEquatable
: return compare(other: other as? User)
This is a minor release that adds support for:
Float
type comparisonNSURL
and URL
type comparisonInitial Mimus release