pub struct FalsificationReport {
pub results: Vec<(String, Category, String, TestResult)>,
pub score: f64,
pub earned_points: u32,
pub total_points: u32,
pub confidence: f64,
}Expand description
Falsification report
Fields§
§results: Vec<(String, Category, String, TestResult)>Test results
score: f64Score (0-100)
earned_points: u32Earned points
total_points: u32Total points
confidence: f64Confidence (0-1)
Implementations§
Source§impl FalsificationReport
impl FalsificationReport
Sourcepub fn categories_with_all_tests_passed(&self) -> usize
pub fn categories_with_all_tests_passed(&self) -> usize
Get categories with all tests passed
Sourcepub fn critical_bugs_absent(&self) -> bool
pub fn critical_bugs_absent(&self) -> bool
Check if all critical bugs are absent
Sourcepub fn has_critical_bugs(&self) -> bool
pub fn has_critical_bugs(&self) -> bool
Check if any critical bugs were detected
Sourcepub fn failed_tests(&self) -> Vec<&(String, Category, String, TestResult)>
pub fn failed_tests(&self) -> Vec<&(String, Category, String, TestResult)>
Get failed tests
Trait Implementations§
Source§impl Clone for FalsificationReport
impl Clone for FalsificationReport
Source§fn clone(&self) -> FalsificationReport
fn clone(&self) -> FalsificationReport
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 FalsificationReport
impl RefUnwindSafe for FalsificationReport
impl Send for FalsificationReport
impl Sync for FalsificationReport
impl Unpin for FalsificationReport
impl UnsafeUnpin for FalsificationReport
impl UnwindSafe for FalsificationReport
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