pub struct DetectorTestCase {
pub name: String,
pub code: String,
pub is_vulnerable: bool,
pub expected_findings: usize,
pub category: String,
}Expand description
Test case for detector validation
Fields§
§name: StringTest name
code: StringTest code pattern
is_vulnerable: boolWhether this code is vulnerable
expected_findings: usizeExpected findings count
category: StringCategory (vulnerable, safe, edge_case, real_exploit)
Trait Implementations§
Source§impl Clone for DetectorTestCase
impl Clone for DetectorTestCase
Source§fn clone(&self) -> DetectorTestCase
fn clone(&self) -> DetectorTestCase
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 DetectorTestCase
impl RefUnwindSafe for DetectorTestCase
impl Send for DetectorTestCase
impl Sync for DetectorTestCase
impl Unpin for DetectorTestCase
impl UnsafeUnpin for DetectorTestCase
impl UnwindSafe for DetectorTestCase
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