pub struct DetectorTestResult {
pub detector_name: String,
pub chain: String,
pub vulnerable_count: usize,
pub safe_count: usize,
pub true_positives: usize,
pub false_positives: usize,
pub false_negatives: usize,
pub execution_time_ms: u64,
}Expand description
Test result for a detector
Fields§
§detector_name: StringDetector name
chain: StringChain (evm, solana, move)
vulnerable_count: usizeNumber of vulnerable patterns tested
safe_count: usizeNumber of safe patterns tested
true_positives: usizeNumber of true positives (correctly detected vulnerabilities)
false_positives: usizeNumber of false positives (safe code detected as vulnerable)
false_negatives: usizeNumber of false negatives (vulnerable code not detected)
execution_time_ms: u64Test execution time in ms
Implementations§
Trait Implementations§
Source§impl Clone for DetectorTestResult
impl Clone for DetectorTestResult
Source§fn clone(&self) -> DetectorTestResult
fn clone(&self) -> DetectorTestResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DetectorTestResult
impl RefUnwindSafe for DetectorTestResult
impl Send for DetectorTestResult
impl Sync for DetectorTestResult
impl Unpin for DetectorTestResult
impl UnsafeUnpin for DetectorTestResult
impl UnwindSafe for DetectorTestResult
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