pub struct ResultFactory;Expand description
Shapes structured violations into a framework-neutral pass flag and complete message.
Implementations§
Source§impl ResultFactory
impl ResultFactory
Sourcepub fn from_violations(violations: &[Violation]) -> TestResult
pub fn from_violations(violations: &[Violation]) -> TestResult
Shapes violations using auto color detection and the expectation that the rule passes.
Sourcepub fn from_violations_with_options(
violations: &[Violation],
options: &TestResultOptions,
) -> TestResult
pub fn from_violations_with_options( violations: &[Violation], options: &TestResultOptions, ) -> TestResult
Shapes violations with explicit color and pass-expectation options.
Sourcepub fn from_error(error: &ArchUnitError) -> TestResult
pub fn from_error(error: &ArchUnitError) -> TestResult
Shapes an architecture-check error using auto color detection.
Sourcepub fn from_error_with_options(
error: &ArchUnitError,
options: &TestResultOptions,
) -> TestResult
pub fn from_error_with_options( error: &ArchUnitError, options: &TestResultOptions, ) -> TestResult
Shapes an architecture-check error with explicit presentation options.
A check error never satisfies an inverted architecture expectation because no verdict was reached.
Trait Implementations§
Source§impl Clone for ResultFactory
impl Clone for ResultFactory
Source§fn clone(&self) -> ResultFactory
fn clone(&self) -> ResultFactory
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResultFactory
impl Debug for ResultFactory
Source§impl Default for ResultFactory
impl Default for ResultFactory
Source§fn default() -> ResultFactory
fn default() -> ResultFactory
Returns the “default value” for a type. Read more
impl Copy for ResultFactory
Auto Trait Implementations§
impl Freeze for ResultFactory
impl RefUnwindSafe for ResultFactory
impl Send for ResultFactory
impl Sync for ResultFactory
impl Unpin for ResultFactory
impl UnwindSafe for ResultFactory
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