pub struct DetectorTestSuite { /* private fields */ }Expand description
Comprehensive test suite for all detectors
Implementations§
Source§impl DetectorTestSuite
impl DetectorTestSuite
Sourcepub fn add_test_case(
&mut self,
detector_name: String,
test_case: DetectorTestCase,
)
pub fn add_test_case( &mut self, detector_name: String, test_case: DetectorTestCase, )
Add test case to suite
Sourcepub fn get_test_cases(&self, detector_name: &str) -> Option<&[DetectorTestCase]>
pub fn get_test_cases(&self, detector_name: &str) -> Option<&[DetectorTestCase]>
Get test cases for detector
Sourcepub fn add_result(&mut self, detector_name: String, result: DetectorTestResult)
pub fn add_result(&mut self, detector_name: String, result: DetectorTestResult)
Store test result
Sourcepub fn get_result(&self, detector_name: &str) -> Option<&DetectorTestResult>
pub fn get_result(&self, detector_name: &str) -> Option<&DetectorTestResult>
Get test result for detector
Sourcepub fn generate_report(&self) -> String
pub fn generate_report(&self) -> String
Generate test report
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DetectorTestSuite
impl RefUnwindSafe for DetectorTestSuite
impl Send for DetectorTestSuite
impl Sync for DetectorTestSuite
impl Unpin for DetectorTestSuite
impl UnsafeUnpin for DetectorTestSuite
impl UnwindSafe for DetectorTestSuite
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