Find a way to allow usage of Matcher
class within custom matcher implementations.
#10
Labels
Matcher
class within custom matcher implementations.
#10
Right now custom matchers might require complicated logic as they cannot leverage internal components of Mimus.
For instance, consider following scenario. We're trying to write a custom matcher for
URLRequest
. In that matcher we need to compareURL?
and[String: String]?
.That means we need to do the usual dance of unwrapping, checking for equality etc:
This could be greatly simplified by using Mimus
Matcher
class:The text was updated successfully, but these errors were encountered: