| 16294 | } |
| 16295 | } |
| 16296 | void 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 | |
| 16318 | void ConsoleReporter::printClosedHeader(std::string const& _name) { |
| 16319 | printOpenHeader(_name); |