MCPcopy Create free account
hub / github.com/Profactor/cv-plot / printTestCaseAndSectionHeader

Method printTestCaseAndSectionHeader

CvPlot/ext/catch2/inc/catch.hpp:16296–16316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16294 }
16295}
16296void ConsoleReporter::printTestCaseAndSectionHeader() {
16297 assert(!m_sectionStack.empty());
16298 printOpenHeader(currentTestCaseInfo->name);
16299
16300 if (m_sectionStack.size() > 1) {
16301 Colour colourGuard(Colour::Headers);
16302
16303 auto
16304 it = m_sectionStack.begin() + 1, // Skip first section (test case)
16305 itEnd = m_sectionStack.end();
16306 for (; it != itEnd; ++it)
16307 printHeaderString(it->name, 2);
16308 }
16309
16310 SourceLineInfo lineInfo = m_sectionStack.back().lineInfo;
16311
16312 stream << getLineOfChars<'-'>() << '\n';
16313 Colour colourGuard(Colour::FileName);
16314 stream << lineInfo << '\n';
16315 stream << getLineOfChars<'.'>() << '\n' << std::endl;
16316}
16317
16318void ConsoleReporter::printClosedHeader(std::string const& _name) {
16319 printOpenHeader(_name);

Callers

nothing calls this directly

Calls 4

sizeMethod · 0.80
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected