pub struct ValidationResult {
pub test_case: GradientTestCase,
pub passed: bool,
pub property_results: HashMap<GradientProperty, PropertyCheckResult>,
pub execution_time_ms: u64,
pub error: Option<String>,
}Expand description
Result of validating a single test case
Fields§
§test_case: GradientTestCaseTest case that was run
passed: boolWhether all properties passed
property_results: HashMap<GradientProperty, PropertyCheckResult>Results for each property
execution_time_ms: u64Execution time in milliseconds
error: Option<String>Error message if validation failed
Implementations§
Source§impl ValidationResult
impl ValidationResult
pub fn new(test_case: GradientTestCase) -> Self
Sourcepub fn all_properties_passed(&self) -> bool
pub fn all_properties_passed(&self) -> bool
Check if all properties passed
Sourcepub fn failed_properties(&self) -> Vec<GradientProperty>
pub fn failed_properties(&self) -> Vec<GradientProperty>
Get failed properties
Trait Implementations§
Source§impl Clone for ValidationResult
impl Clone for ValidationResult
Auto Trait Implementations§
impl Freeze for ValidationResult
impl RefUnwindSafe for ValidationResult
impl Send for ValidationResult
impl Sync for ValidationResult
impl Unpin for ValidationResult
impl UnsafeUnpin for ValidationResult
impl UnwindSafe for ValidationResult
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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