Skip to main content

Module assertion_helpers

Module assertion_helpers 

Source
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ยง

SearchDetails ๐Ÿ”’

Functionsยง

assert_contains
Assert that haystack contains needle.
assert_contains_regex
Assert that haystack contains the regex needle.
assert_count_is
Assert that haystack contains regex needle an expected_count number of times.
assert_dirs_are_equal
Assert that all files in dir1 exist and have the same content in dir2
assert_equals
Assert that actual is equal to expected.
assert_not_contains
Assert that haystack does not contain needle.
assert_not_contains_regex
Assert that haystack does not contain the regex needle.