pub struct PropertyTest {
pub name: String,
pub iterations: usize,
pub results: Vec<(String, bool)>,
}Expand description
A property-based test harness for round-trip properties.
Fields§
§name: StringName of this property test
iterations: usizeThe number of iterations to run
results: Vec<(String, bool)>Results collected
Implementations§
Source§impl PropertyTest
impl PropertyTest
Sourcepub fn with_iterations(self, n: usize) -> Self
pub fn with_iterations(self, n: usize) -> Self
Set the number of iterations.
Sourcepub fn all_passed(&self) -> bool
pub fn all_passed(&self) -> bool
Returns whether all recorded results passed.
Auto Trait Implementations§
impl Freeze for PropertyTest
impl RefUnwindSafe for PropertyTest
impl Send for PropertyTest
impl Sync for PropertyTest
impl Unpin for PropertyTest
impl UnsafeUnpin for PropertyTest
impl UnwindSafe for PropertyTest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more