pub struct IntegrationVerification {
pub verification_rules: Vec<VerificationRule>,
pub validation_history: Vec<ValidationHistoryEntry>,
pub statistics: VerificationStatistics,
}Expand description
Integration verification system
Fields§
§verification_rules: Vec<VerificationRule>Verification rules
validation_history: Vec<ValidationHistoryEntry>Validation history
statistics: VerificationStatisticsVerification statistics
Implementations§
Source§impl IntegrationVerification
impl IntegrationVerification
pub fn new() -> Self
Sourcepub fn verify_test_case(
&self,
test_case: &IntegrationTestCase,
) -> Result<IntegrationValidationResult, String>
pub fn verify_test_case( &self, test_case: &IntegrationTestCase, ) -> Result<IntegrationValidationResult, String>
Verify integration test case
Sourcepub fn add_rule(&mut self, rule: VerificationRule)
pub fn add_rule(&mut self, rule: VerificationRule)
Add a verification rule
Sourcepub fn remove_rule(&mut self, rule_name: &str)
pub fn remove_rule(&mut self, rule_name: &str)
Remove a verification rule
Sourcepub const fn get_statistics(&self) -> &VerificationStatistics
pub const fn get_statistics(&self) -> &VerificationStatistics
Get verification statistics
Sourcepub fn clear_history(&mut self)
pub fn clear_history(&mut self)
Clear validation history
Sourcepub fn get_history(&self) -> &[ValidationHistoryEntry]
pub fn get_history(&self) -> &[ValidationHistoryEntry]
Get validation history
Sourcepub fn update_statistics(
&mut self,
status: ValidationStatus,
duration: Duration,
)
pub fn update_statistics( &mut self, status: ValidationStatus, duration: Duration, )
Update statistics
Auto Trait Implementations§
impl Freeze for IntegrationVerification
impl RefUnwindSafe for IntegrationVerification
impl Send for IntegrationVerification
impl Sync for IntegrationVerification
impl Unpin for IntegrationVerification
impl UnsafeUnpin for IntegrationVerification
impl UnwindSafe for IntegrationVerification
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> 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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.