tests_plural_if

Function tests_plural_if 

Source
pub fn tests_plural_if(mode: NextestRunMode, plural: bool) -> &'static str
Expand description

Returns:

  • If mode is Test: “tests” if plural is true, otherwise “test”.
  • If mode is Benchmark: “benchmarks” if plural is true, otherwise “benchmark”.