pub struct ConformanceRunner { /* private fields */ }Expand description
Executable opt-in conformance suite for application graphs.
Implementations§
Source§impl ConformanceRunner
impl ConformanceRunner
Sourcepub fn new(suite: ConformanceSuite) -> Self
pub fn new(suite: ConformanceSuite) -> Self
Creates a runner from a required-level suite.
Sourcepub fn require(self, level: ConformanceLevel) -> Self
pub fn require(self, level: ConformanceLevel) -> Self
Requires a level even if no check has been registered yet.
Sourcepub fn check(
self,
level: ConformanceLevel,
invariant: impl Into<String>,
run: impl FnMut() -> ConformanceCheckResult + 'static,
) -> Self
pub fn check( self, level: ConformanceLevel, invariant: impl Into<String>, run: impl FnMut() -> ConformanceCheckResult + 'static, ) -> Self
Registers an executable conformance check.
Sourcepub fn unsupported(
self,
level: ConformanceLevel,
reason: impl Into<String>,
) -> Self
pub fn unsupported( self, level: ConformanceLevel, reason: impl Into<String>, ) -> Self
Marks a level unsupported with an explicit reason.
Sourcepub fn run(self) -> Result<ConformanceReport, ConformanceFailure>
pub fn run(self) -> Result<ConformanceReport, ConformanceFailure>
Runs all checks and returns supported/unsupported level reporting.
Auto Trait Implementations§
impl !RefUnwindSafe for ConformanceRunner
impl !Send for ConformanceRunner
impl !Sync for ConformanceRunner
impl !UnwindSafe for ConformanceRunner
impl Freeze for ConformanceRunner
impl Unpin for ConformanceRunner
impl UnsafeUnpin for ConformanceRunner
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