pub struct PipelinePropertyTester { /* private fields */ }Expand description
Property-based test suite for pipeline invariants
Implementations§
Source§impl PipelinePropertyTester
impl PipelinePropertyTester
Sourcepub fn generator(self, generator: PropertyTestGenerator) -> Self
pub fn generator(self, generator: PropertyTestGenerator) -> Self
Set the test generator
Sourcepub fn test_sample_preservation<P>(
&self,
pipeline: &P,
n_tests: usize,
) -> PropertyTestResult
pub fn test_sample_preservation<P>( &self, pipeline: &P, n_tests: usize, ) -> PropertyTestResult
Test that pipeline preserves sample count
Sourcepub fn test_transformation_consistency<P>(
&self,
pipeline: &P,
n_tests: usize,
) -> PropertyTestResult
pub fn test_transformation_consistency<P>( &self, pipeline: &P, n_tests: usize, ) -> PropertyTestResult
Test that pipeline transformations are consistent
Sourcepub fn test_composition_associativity<P1, P2, P3>(
&self,
p1: &P1,
p2: &P2,
p3: &P3,
) -> PropertyTestResultwhere
P1: for<'a> Transform<ArrayView2<'a, f64>, Array2<f64>>,
P2: for<'a> Transform<ArrayView2<'a, f64>, Array2<f64>>,
P3: for<'a> Transform<ArrayView2<'a, f64>, Array2<f64>>,
pub fn test_composition_associativity<P1, P2, P3>(
&self,
p1: &P1,
p2: &P2,
p3: &P3,
) -> PropertyTestResultwhere
P1: for<'a> Transform<ArrayView2<'a, f64>, Array2<f64>>,
P2: for<'a> Transform<ArrayView2<'a, f64>, Array2<f64>>,
P3: for<'a> Transform<ArrayView2<'a, f64>, Array2<f64>>,
Test pipeline composition properties
Sourcepub fn test_feature_union_completeness<T1, T2>(
&self,
t1: &T1,
t2: &T2,
) -> PropertyTestResultwhere
T1: for<'a> Transform<ArrayView2<'a, f64>, Array2<f64>>,
T2: for<'a> Transform<ArrayView2<'a, f64>, Array2<f64>>,
pub fn test_feature_union_completeness<T1, T2>(
&self,
t1: &T1,
t2: &T2,
) -> PropertyTestResultwhere
T1: for<'a> Transform<ArrayView2<'a, f64>, Array2<f64>>,
T2: for<'a> Transform<ArrayView2<'a, f64>, Array2<f64>>,
Test that feature union preserves all input features
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PipelinePropertyTester
impl RefUnwindSafe for PipelinePropertyTester
impl Send for PipelinePropertyTester
impl Sync for PipelinePropertyTester
impl Unpin for PipelinePropertyTester
impl UnwindSafe for PipelinePropertyTester
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more