Expand description
Collection of assertions and assertion-related helpers.
Re-exportsยง
use std::panic;๐use std::panic;๐use std::path::Path;๐use crate::fs;๐use crate::regex;๐
Structsยง
- Search
Details ๐
Functionsยง
- assert_
contains - Assert that
haystackcontainsneedle. - assert_
contains_ regex - Assert that
haystackcontains the regexneedle. - assert_
count_ is - Assert that
haystackcontains regexneedleanexpected_countnumber of times. - assert_
dirs_ are_ equal - Assert that all files in
dir1exist and have the same content indir2 - assert_
equals - Assert that
actualis equal toexpected. - assert_
not_ contains - Assert that
haystackdoes not containneedle. - assert_
not_ contains_ regex - Assert that
haystackdoes not contain the regexneedle.