pub struct ConsoleRenderer { /* private fields */ }Expand description
Handles rendering of test results to the console
Implementations§
Source§impl ConsoleRenderer
impl ConsoleRenderer
Sourcepub fn render_success(&self, result: &Assertion<()>) -> String
pub fn render_success(&self, result: &Assertion<()>) -> String
Render a successful assertion result
Sourcepub fn render_failure(&self, result: &Assertion<()>) -> (String, String)
pub fn render_failure(&self, result: &Assertion<()>) -> (String, String)
Render a failed assertion result
Sourcepub fn render_session_summary(&self, result: &TestSessionResult) -> String
pub fn render_session_summary(&self, result: &TestSessionResult) -> String
Render a full test session result
Sourcepub fn print_success(&self, result: &Assertion<()>)
pub fn print_success(&self, result: &Assertion<()>)
Format and print a successful test result to the console
Sourcepub fn print_failure(&self, result: &Assertion<()>)
pub fn print_failure(&self, result: &Assertion<()>)
Format and print a failed test result to the console
Sourcepub fn print_session_summary(&self, result: &TestSessionResult)
pub fn print_session_summary(&self, result: &TestSessionResult)
Print the complete test session summary
Auto Trait Implementations§
impl Freeze for ConsoleRenderer
impl RefUnwindSafe for ConsoleRenderer
impl Send for ConsoleRenderer
impl Sync for ConsoleRenderer
impl Unpin for ConsoleRenderer
impl UnwindSafe for ConsoleRenderer
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