Skip to main content

filter_test_cases

Function filter_test_cases 

Source
pub fn filter_test_cases<'db>(
    compiled: TestCompilation<'db>,
    include_ignored: bool,
    ignored: bool,
    filter: &str,
) -> (TestCompilation<'db>, usize)
Expand description

Filter compiled test cases with user provided arguments.

§Arguments

  • compiled - Compiled test cases with metadata.
  • include_ignored - Include ignored tests as well.
  • ignored - Run ignored tests only
  • filter - Include only tests containing the filter string.

§Returns

  • (TestCompilation, usize) - The filtered test cases and the number of filtered out cases.