Attributes
Members list
Type members
Classlikes
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Value members
Concrete methods
Reject the test case that has been supplied to the currently executing trial; this aborts the trial, but more test cases can still be supplied. Like the use of filtration, this approach will interact correctly with the shrinkage mechanism, which is why it is provided.
Reject the test case that has been supplied to the currently executing trial; this aborts the trial, but more test cases can still be supplied. Like the use of filtration, this approach will interact correctly with the shrinkage mechanism, which is why it is provided.
Attributes
- Note
-
This method will abort a trial's execution by throwing a private exception handled by the framework implementation. If it is called outside a trial, then it returns control as a no-operation.
This is an alternative to calling Trials.filter - the idea here is to embed calls to this method in the test itself as an enclosing guard condition prior to executing the core testing code. Usually the guard precondition would involve some check on the supplied case and possibly some other inputs that come from elsewhere. Like the use of filtration, this approach will interact correctly with the shrinkage mechanism, which is why it is provided.
This is an alternative to calling Trials.filter - the idea here is to embed calls to this method in the test itself as an enclosing guard condition prior to executing the core testing code. Usually the guard precondition would involve some check on the supplied case and possibly some other inputs that come from elsewhere. Like the use of filtration, this approach will interact correctly with the shrinkage mechanism, which is why it is provided.
Value parameters
- block
-
The core testing code, lazily evaluated.
- guardPrecondition
-
A precondition that must be satisfied to run the test code.