cargo_test_support::compare

Function match_contains_n

Source
pub(crate) fn match_contains_n(
    expected: &str,
    number: usize,
    actual: &str,
    cwd: Option<&Path>,
) -> Result<()>
Expand description

Checks that the given string contains the given contiguous lines somewhere, and should be repeated number times.

See Patterns for more information on pattern matching.