pub struct Assert { /* private fields */ }
Expand description
§To run assertions tests
Trait Implementations§
Source§impl Testable for Assert
impl Testable for Assert
Source§fn matches(&mut self, pattern: &str, values: Vec<String>) -> &mut Self
fn matches(&mut self, pattern: &str, values: Vec<String>) -> &mut Self
Check if a pattern matches values Read more
Source§fn capture(
&mut self,
pattern: &str,
x: &str,
key: usize,
values: Vec<String>,
) -> &mut Self
fn capture( &mut self, pattern: &str, x: &str, key: usize, values: Vec<String>, ) -> &mut Self
check if a pattern the x index equals a value listing in values Read more
fn it( title: &str, description: &str, sleep_time: u64, callbacks: Vec<&dyn Fn(&mut Self) -> &mut Self>, )
Source§fn ne<T: PartialEq>(&mut self, a: T, b: T) -> &mut Self
fn ne<T: PartialEq>(&mut self, a: T, b: T) -> &mut Self
Check if a and b are unequals Read more
Source§fn gt<T: PartialOrd>(&mut self, a: T, min: T) -> &mut Self
fn gt<T: PartialOrd>(&mut self, a: T, min: T) -> &mut Self
Check if a is superior to min Read more
Source§fn ge<T: PartialOrd>(&mut self, a: T, min: T) -> &mut Self
fn ge<T: PartialOrd>(&mut self, a: T, min: T) -> &mut Self
Check if a is superior or equal to min Read more
fn le<T: PartialOrd>(&mut self, a: T, min: T) -> &mut Self
Source§fn lt<T: PartialOrd>(&mut self, a: T, min: T) -> &mut Self
fn lt<T: PartialOrd>(&mut self, a: T, min: T) -> &mut Self
Check if a is inferior to max Read more
Source§fn between<T: PartialOrd>(&mut self, a: T, min: T, max: T) -> &mut Self
fn between<T: PartialOrd>(&mut self, a: T, min: T, max: T) -> &mut Self
Check if a is between min and max Read more
Source§fn vec_contains<T: PartialEq>(&mut self, a: Vec<T>, b: T) -> &mut Self
fn vec_contains<T: PartialEq>(&mut self, a: Vec<T>, b: T) -> &mut Self
Check if a vector contains a value Read more
Source§fn vec_no_contains<T: PartialEq>(&mut self, a: Vec<T>, b: T) -> &mut Self
fn vec_no_contains<T: PartialEq>(&mut self, a: Vec<T>, b: T) -> &mut Self
Check if a vector not contains a value Read more
Source§fn option_contains<T: PartialEq>(&mut self, a: Option<T>, b: T) -> &mut Self
fn option_contains<T: PartialEq>(&mut self, a: Option<T>, b: T) -> &mut Self
Check if an option contains a value Read more
Source§fn hash_contains(&mut self, a: &mut HashSet<String>, b: String) -> &mut Self
fn hash_contains(&mut self, a: &mut HashSet<String>, b: String) -> &mut Self
Check if a hash contains a string Read more
Source§fn str_contains(&mut self, a: &str, b: &str) -> &mut Self
fn str_contains(&mut self, a: &str, b: &str) -> &mut Self
Check if a sting contains a substring Read more
Source§fn file_contains(&mut self, f: &str, v: &str) -> &mut Self
fn file_contains(&mut self, f: &str, v: &str) -> &mut Self
Check if a file contains a value Read more
Source§fn not_exists(&mut self, p: &str) -> &mut Self
fn not_exists(&mut self, p: &str) -> &mut Self
Check if a path not exists Read more
Source§fn start_with(&mut self, actual: &str, expected: &str) -> &mut Self
fn start_with(&mut self, actual: &str, expected: &str) -> &mut Self
Check if a string begins with the expected value Read more
Auto Trait Implementations§
impl !Freeze for Assert
impl !RefUnwindSafe for Assert
impl Send for Assert
impl !Sync for Assert
impl Unpin for Assert
impl UnwindSafe for Assert
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