pub fn tests_plural_if(mode: NextestRunMode, plural: bool) -> &'static strExpand description
Returns:
- If
modeisTest: “tests” ifpluralis true, otherwise “test”. - If
modeisBenchmark: “benchmarks” ifpluralis true, otherwise “benchmark”.
pub fn tests_plural_if(mode: NextestRunMode, plural: bool) -> &'static strReturns:
mode is Test: “tests” if plural is true, otherwise “test”.mode is Benchmark: “benchmarks” if plural is true, otherwise “benchmark”.