Skip to main content

assert_contains_all

Function assert_contains_all 

Source
pub fn assert_contains_all(text: &str, needles: &[&str])
Expand description

Assert that text contains every needle in needles. Reports the first missing needle with a snippet of the surrounding text so failures point at the exact missing token instead of a wall of text.