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
- Companion:
- object
Type members
Inherited classlikes
this implicit provides an inverted syntax to adapt matchers to make the adaptation more readable in some cases:
this implicit provides an inverted syntax to adapt matchers to make the adaptation more readable in some cases:
- def haveExtension(extension: =>String) = ((_:File).getPath) ^^ endWith(extension)
- Inherited from:
- MatchersCreation
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
Add functionalities to functions returning matchers so that they can be combined before taking a value and returning actual matchers
Add functionalities to functions returning matchers so that they can be combined before taking a value and returning actual matchers
- Inherited from:
- ResultImplicits
Value members
Inherited methods
apply a matcher atLeast one value
apply a matcher atLeast one value
- Inherited from:
- SequenceMatchersCreation
verify the function f for at least one value
verify the function f for at least one value
- Inherited from:
- SequenceMatchersCreation
verify the function f for at least one value, where the PartialFunction is defined
verify the function f for at least one value, where the PartialFunction is defined
- Inherited from:
- SequenceMatchersCreation
apply a matcher atLeast one value
apply a matcher atLeast one value
- Inherited from:
- SequenceMatchersCreation
verify the function f for at least one value
verify the function f for at least one value
- Inherited from:
- SequenceMatchersCreation
verify the function f for at least one value, where the PartialFunction is defined
verify the function f for at least one value, where the PartialFunction is defined
- Inherited from:
- SequenceMatchersCreation
this method can be overridden to throw exceptions when checking the match result
this method can be overridden to throw exceptions when checking the match result
- Inherited from:
- ExpectationsCreation
this method can be overridden to throw exceptions when checking the match result
this method can be overridden to throw exceptions when checking the match result
- Inherited from:
- ExpectationsCreation
this method can be overridden to throw exceptions when checking the result
this method can be overridden to throw exceptions when checking the result
- Inherited from:
- ExpectationsCreation
apply a matcher for all values
apply a matcher for all values
- Inherited from:
- SequenceMatchersCreation
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
- Inherited from:
- SequenceMatchersCreation
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, stopping after the first failure, where the PartialFunction is defined
- Inherited from:
- SequenceMatchersCreation
verify the function f for all the values, and collect all failures
verify the function f for all the values, and collect all failures
- Inherited from:
- SequenceMatchersCreation
verify the function f for all the values, and collect all failures, where the PartialFunction is defined
verify the function f for all the values, and collect all failures, where the PartialFunction is defined
- Inherited from:
- SequenceMatchersCreation
this method can be overridden to intercept a MatchResult and change its message before it is thrown
this method can be overridden to intercept a MatchResult and change its message before it is thrown
- Inherited from:
- ExpectationsCreation
this method can be overridden to avoid filling-in a stacktrace indicating the location of the result
this method can be overridden to avoid filling-in a stacktrace indicating the location of the result
- Inherited from:
- MatchResultStackTrace
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
Implicits
Inherited implicits
this implicit provides an inverted syntax to adapt matchers to make the adaptation more readable in some cases:
this implicit provides an inverted syntax to adapt matchers to make the adaptation more readable in some cases:
- def haveExtension(extension: =>String) = ((_:File).getPath) ^^ endWith(extension)
- Inherited from:
- MatchersCreation
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
implicit definition to transform any MatchResult to a Result
implicit definition to transform any MatchResult to a Result
- Inherited from:
- MatchResultImplicits
describe a value with the aka method
describe a value with the aka method
- Inherited from:
- ExpectationsDescription
implicit definition to accept any MatchResult as a Boolean value. It is true if the MatchResult is not an Error or a Failure
implicit definition to accept any MatchResult as a Boolean value. It is true if the MatchResult is not an Error or a Failure
- Inherited from:
- MatchResultImplicits
This method transforms a function to a Matcher
This method transforms a function to a Matcher
- Inherited from:
- MatchersCreation
This method transforms a function, with function descriptors to a Matcher
This method transforms a function, with function descriptors to a Matcher
- Inherited from:
- MatchersCreation
This method transforms a function to a Matcher
This method transforms a function to a Matcher
- Inherited from:
- MatchersCreation
This method transforms a function to a Matcher
This method transforms a function to a Matcher
- Inherited from:
- MatchersCreation
This method transforms a function returning a Result to a Matcher
This method transforms a function returning a Result to a Matcher
- Inherited from:
- MatchersCreation
This method transforms a function returning a pair (Boolean, String for ko message) to a Matcher
This method transforms a function returning a pair (Boolean, String for ko message) to a Matcher
- Inherited from:
- MatchersCreation
Add functionalities to functions returning matchers so that they can be combined before taking a value and returning actual matchers
Add functionalities to functions returning matchers so that they can be combined before taking a value and returning actual matchers
- Inherited from:
- ResultImplicits
implicit definition to transform a Seq of MatchResults to a Result
implicit definition to transform a Seq of MatchResults to a Result
- Inherited from:
- MatchResultImplicits
this allows a function returning a matcher to be used where the same function with a byname parameter is expected
this allows a function returning a matcher to be used where the same function with a byname parameter is expected
- Inherited from:
- MatchersCreation
implicit definition to accept any boolean value as a Result This avoids writing b must beTrue
implicit definition to accept any boolean value as a Result This avoids writing b must beTrue
- Inherited from:
- Results
This method transforms a function returning a triplet (Boolean, String for ok message, String for ko message) to a Matcher
This method transforms a function returning a triplet (Boolean, String for ok message, String for ko message) to a Matcher
- Inherited from:
- MatchersCreation
A value can be tested against another with the === operator. It is equivalent to writing a must_== b
A value can be tested against another with the === operator. It is equivalent to writing a must_== b
- Inherited from:
- TypedEqual