pub struct OperationValidationReport {
pub operation: String,
pub test_cases: Vec<ValidationResult>,
pub total_tests: usize,
pub tests_passed: usize,
pub tests_failed: usize,
pub coverage_percentage: f64,
}Expand description
Validation report for an operation
Fields§
§operation: StringOperation name
test_cases: Vec<ValidationResult>All test cases run
total_tests: usizeTotal tests run
tests_passed: usizeTests passed
tests_failed: usizeTests failed
coverage_percentage: f64Coverage percentage
Implementations§
Source§impl OperationValidationReport
impl OperationValidationReport
pub fn new(operation: &str) -> Self
Sourcepub fn add_result(&mut self, result: ValidationResult)
pub fn add_result(&mut self, result: ValidationResult)
Add a test result
Sourcepub fn all_tests_passed(&self) -> bool
pub fn all_tests_passed(&self) -> bool
Check if all tests passed
Sourcepub fn print_summary(&self)
pub fn print_summary(&self)
Print summary
Trait Implementations§
Source§impl Clone for OperationValidationReport
impl Clone for OperationValidationReport
Auto Trait Implementations§
impl Freeze for OperationValidationReport
impl RefUnwindSafe for OperationValidationReport
impl Send for OperationValidationReport
impl Sync for OperationValidationReport
impl Unpin for OperationValidationReport
impl UnsafeUnpin for OperationValidationReport
impl UnwindSafe for OperationValidationReport
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