Trait ProptestResultExt
pub trait ProptestResultExt<T, E>: Sealed
Extension trait for Result<T, E> to provide additional functionality
specifically for prop test cases.
Required Methods
fn prop_assume_ok(self) -> Result<T, TestCaseError> where E: Debug,Converts a
Result<T, E>into aResult<T, TestCaseError>, where theErrcase is transformed into aTestCaseError::Reject.This is intended to be used like the
prop_assume!macro, but for fallible computations. If the result isErr, the test input is rejected and a new input will be generated.Example
use *; proptest!
Implementors
impl<T, E> ProptestResultExt<T, E> for Result<T, E>