MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / listTestsNamesOnly

Function listTestsNamesOnly

Bcore/src/main/cpp/Dobby/tests/catch.hpp:7558–7573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7556}
7557
7558std::size_t listTestsNamesOnly(Config const &config) {
7559 TestSpec testSpec = config.testSpec();
7560 std::size_t matchedTests = 0;
7561 std::vector<TestCase> matchedTestCases = filterTests(getAllTestCasesSorted(config), testSpec, config);
7562 for (auto const &testCaseInfo : matchedTestCases) {
7563 matchedTests++;
7564 if (startsWith(testCaseInfo.name, '#'))
7565 Catch::cout() << '"' << testCaseInfo.name << '"';
7566 else
7567 Catch::cout() << testCaseInfo.name;
7568 if (config.verbosity() >= Verbosity::High)
7569 Catch::cout() << "\t@" << testCaseInfo.lineInfo;
7570 Catch::cout() << std::endl;
7571 }
7572 return matchedTests;
7573}
7574
7575void TagInfo::add(std::string const &spelling) {
7576 ++count;

Callers 1

listFunction · 0.85

Calls 4

filterTestsFunction · 0.85
startsWithFunction · 0.85
testSpecMethod · 0.80
verbosityMethod · 0.80

Tested by

no test coverage detected