pub struct TestResult { /* private fields */ }
Expand description

Describes the status of a single instance of a test.

All testable things must be capable of producing a TestResult.

Implementations

Produces a test result that indicates the current test has passed.

Produces a test result that indicates the current test has failed.

Produces a test result that indicates failure from a runtime error.

Produces a test result that instructs quickcheck to ignore it. This is useful for restricting the domain of your properties. When a test is discarded, quickcheck will replace it with a fresh one (up to a certain limit).

Converts a bool to a TestResult. A true value indicates that the test has passed and a false value indicates that the test has failed.

Tests if a “procedure” fails when executed. The test passes only if f generates a task failure during its execution.

Returns true if and only if this test result describes a failing test.

Returns true if and only if this test result describes a failing test as a result of a run time error.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.