pub trait Take {
    // Required methods
    fn assert_that(&mut self, t: bool) -> bool;
    fn take(&mut self, t: bool, s: &str, e: &str) -> &mut Self;
    fn check(&mut self, t: bool, s: &str, e: &str);
}
Expand description

§Calculate the time of the test function

Required Methods§

source

fn assert_that(&mut self, t: bool) -> bool

§run assertion
  • t The test
source

fn take(&mut self, t: bool, s: &str, e: &str) -> &mut Self

§Run assert and measure execution time
  • t The test
  • s The success output message
  • e The error output message
source

fn check(&mut self, t: bool, s: &str, e: &str)

§Run a assert and mesure the time
  • t The test
  • s The success output message
  • e The error output message

Object Safety§

This trait is not object safe.

Implementors§