pub struct AssertEqualOptions {
pub check_dtype: bool,
pub check_index_type: bool,
pub check_names: bool,
pub check_exact: bool,
pub check_like: bool,
pub rtol: f64,
pub atol: f64,
}Expand description
Configuration options for testing assertions matching pandas pandas.testing kwargs.
Fields§
§check_dtype: boolWhether to check that dtypes match exactly (default: true).
check_index_type: boolWhether to check that index types match (default: true).
check_names: boolWhether to check column names and index/series names (default: true).
check_exact: boolWhether to require exact float equality instead of using rtol/atol (default: false).
check_like: boolWhether to ignore row and column order (default: false).
rtol: f64Relative tolerance for floating-point comparisons (default: 1e-5).
atol: f64Absolute tolerance for floating-point comparisons (default: 1e-8).
Implementations§
Source§impl AssertEqualOptions
impl AssertEqualOptions
Sourcepub fn with_check_dtype(self, check: bool) -> Self
pub fn with_check_dtype(self, check: bool) -> Self
Configure whether to verify dtypes match.
Sourcepub fn with_check_index_type(self, check: bool) -> Self
pub fn with_check_index_type(self, check: bool) -> Self
Configure whether to verify index types match.
Sourcepub fn with_check_names(self, check: bool) -> Self
pub fn with_check_names(self, check: bool) -> Self
Configure whether to verify column/series/index names match.
Sourcepub fn with_check_exact(self, check: bool) -> Self
pub fn with_check_exact(self, check: bool) -> Self
Configure whether to require exact floating-point equality.
Sourcepub fn with_check_like(self, check: bool) -> Self
pub fn with_check_like(self, check: bool) -> Self
Configure whether to ignore row and column order.
Sourcepub fn with_tolerance(self, rtol: f64, atol: f64) -> Self
pub fn with_tolerance(self, rtol: f64, atol: f64) -> Self
Set relative and absolute tolerances for float comparison.
Trait Implementations§
Source§impl Clone for AssertEqualOptions
impl Clone for AssertEqualOptions
Source§impl Debug for AssertEqualOptions
impl Debug for AssertEqualOptions
Source§impl Default for AssertEqualOptions
impl Default for AssertEqualOptions
Source§impl PartialEq for AssertEqualOptions
impl PartialEq for AssertEqualOptions
impl StructuralPartialEq for AssertEqualOptions
Auto Trait Implementations§
impl Forget for AssertEqualOptions
impl Freeze for AssertEqualOptions
impl Move for AssertEqualOptions
impl RefUnwindSafe for AssertEqualOptions
impl Send for AssertEqualOptions
impl Sync for AssertEqualOptions
impl Unpin for AssertEqualOptions
impl UnsafeUnpin for AssertEqualOptions
impl UnwindSafe for AssertEqualOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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