pub struct IntegrationTestResult {
pub converged: bool,
pub messages_processed: usize,
pub messages_dropped: usize,
pub presence_vectors: Vec<PresenceVector>,
pub degradation_levels: Vec<DegradationLevel>,
pub invariants_maintained: bool,
pub invariant_violations: Vec<String>,
}Expand description
Result of an integration test
Fields§
§converged: boolDid all nodes converge?
messages_processed: usizeTotal messages processed
messages_dropped: usizeMessages dropped (due to chaos)
presence_vectors: Vec<PresenceVector>Final presence vectors per node
degradation_levels: Vec<DegradationLevel>Final degradation levels per node
invariants_maintained: boolWere all invariants maintained?
invariant_violations: Vec<String>Specific invariant violations
Implementations§
Source§impl IntegrationTestResult
impl IntegrationTestResult
Sourcepub fn min_presence_score(&self) -> f32
pub fn min_presence_score(&self) -> f32
Get minimum presence score across all nodes
Sourcepub fn worst_degradation(&self) -> DegradationLevel
pub fn worst_degradation(&self) -> DegradationLevel
Get worst degradation level
Trait Implementations§
Source§impl Clone for IntegrationTestResult
impl Clone for IntegrationTestResult
Source§fn clone(&self) -> IntegrationTestResult
fn clone(&self) -> IntegrationTestResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for IntegrationTestResult
impl RefUnwindSafe for IntegrationTestResult
impl Send for IntegrationTestResult
impl Sync for IntegrationTestResult
impl Unpin for IntegrationTestResult
impl UnsafeUnpin for IntegrationTestResult
impl UnwindSafe for IntegrationTestResult
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