pub struct ValidationTestRunner { /* private fields */ }Expand description
Validation test runner for comprehensive plugin testing
ValidationTestRunner executes a complete test suite including security validation, performance testing, and compatibility checks.
§Examples
ⓘ
use sklears_core::plugin::{ValidationTestRunner, MockPlugin};
let runner = ValidationTestRunner::new();
let plugin = MockPlugin::new("test_plugin");
let fixture = runner.create_test_fixture();
let report = runner.run_validation_tests(&plugin, &fixture.create_test_manifests()[0]);
println!("Validation passed: {}", !report.has_errors());Implementations§
Source§impl ValidationTestRunner
impl ValidationTestRunner
Sourcepub fn with_strict_security() -> Self
pub fn with_strict_security() -> Self
Create test runner with strict security
Sourcepub fn run_validation_tests(
&self,
plugin: &dyn Plugin,
manifest: &PluginManifest,
) -> ValidationReport
pub fn run_validation_tests( &self, plugin: &dyn Plugin, manifest: &PluginManifest, ) -> ValidationReport
Sourcepub fn run_performance_tests(
&mut self,
plugin: &mut dyn Plugin,
) -> Vec<PerformanceResult>
pub fn run_performance_tests( &mut self, plugin: &mut dyn Plugin, ) -> Vec<PerformanceResult>
Sourcepub fn run_compatibility_tests(
&self,
plugin: &dyn Plugin,
) -> CompatibilityTestResult
pub fn run_compatibility_tests( &self, plugin: &dyn Plugin, ) -> CompatibilityTestResult
Sourcepub fn create_test_fixture(&self) -> &PluginTestFixture
pub fn create_test_fixture(&self) -> &PluginTestFixture
Create a test fixture for the runner
Sourcepub fn run_complete_test_suite(
&mut self,
plugin: &mut dyn Plugin,
manifest: &PluginManifest,
) -> CompleteTestResult
pub fn run_complete_test_suite( &mut self, plugin: &mut dyn Plugin, manifest: &PluginManifest, ) -> CompleteTestResult
Trait Implementations§
Source§impl Debug for ValidationTestRunner
impl Debug for ValidationTestRunner
Auto Trait Implementations§
impl Freeze for ValidationTestRunner
impl !RefUnwindSafe for ValidationTestRunner
impl Send for ValidationTestRunner
impl Sync for ValidationTestRunner
impl Unpin for ValidationTestRunner
impl !UnwindSafe for ValidationTestRunner
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more