interface MatcherResult
An instance of MatcherResult contains the result of an evaluation of a Matcher.
failureMessage |
Returns a message indicating why the evaluation failed
for when this matcher is used in the positive sense. For example,
if a size matcher was used like abstract fun failureMessage(): String |
negatedFailureMessage |
Returns a message indicating why the evaluation
failed for when this matcher is used in the negative sense. For example,
if a size matcher was used like abstract fun negatedFailureMessage(): String |
passed |
Returns true if the matcher indicated this was a valid value and false if the matcher indicated an invalid value. abstract fun passed(): Boolean |
invoke |
operator fun invoke(passed: Boolean, failureMessage: String, negatedFailureMessage: String): MatcherResultoperator fun invoke(passed: Boolean, failureMessageFn: () -> String, negatedFailureMessageFn: () -> String): MatcherResult |