The SeqMatcher
class is a matcher matching a sequence of objects with a matcher returned by a function.
The SetMatcher
class is a matcher matching a set of objects with a matcher returned by a function.
implicit definition to transform any MatchResult to a Result
verify the function f for at least one value
verify the function f for at least one value, where the PartialFunction is defined
A value can be tested against another with the === operator.
A value can be tested against another with the === operator. It is equivalent to writing a must_== b
this method can be overriden to throw exceptions when checking the match result
this method can be overriden to throw exceptions when checking the match result
this method can be overriden to throw exceptions when checking the result
this method can be overriden to throw exceptions when checking the result
an Expectable with a description function
an Expectable with a description function
an Expectable with a description
an Expectable
an Expectable with a function to show the element T
describe a value with the aka method
describe a value with the aka method
verify the function f for all the values, stopping after the first failure
verify the function f for all the values, stopping after the first failure, where the PartialFunction is defined
verify the function f for all the values, and collect all failures
verify the function f for all the values, and collect all failures, where the PartialFunction is defined
implicit definition to accept any MatchResult as a Boolean value.
implicit definition to accept any MatchResult as a Boolean value. It is true if the MatchResult is not an Error or a Failure
This method transform a function to a Matcher
This method transform a function, with function descriptors to a Matcher
This method transform a function to a Matcher
This method transform a function to a Matcher
This method transform a function returning a MatchResult to a Matcher
this method can be overriden to intercept the transformation of a MatchResult to a Result
this method can be overriden to intercept the transformation of a MatchResult to a Result
Add functionalities to functions returning matchers so that they can be combined before taking a value and returning actual matchers
This method transform a function returning a pair (Boolean, String for ko message) to a Matcher
implicit definition to transform a Seq of MatchResults to a Result
implicit definition to accept any boolean value as a Result This avoids writing b must beTrue
This method transform a function returning a triplet (Boolean, String for ok message, String for ko message) to a Matcher
This trait provides implicit definitions from MatchResults and Booleans to Results.
It also allows to:
- create matchers from functions - create matchers for seqs and sets from single matchers