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

Method open

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

Source from the content-addressed store, hash-verified

16043 }
16044
16045 void open() {
16046 if (!m_isOpen) {
16047 m_isOpen = true;
16048 *this << RowBreak();
16049
16050 Columns headerCols;
16051 Spacer spacer(2);
16052 for (auto const& info : m_columnInfos) {
16053 headerCols += Column(info.name).width(static_cast<std::size_t>(info.width - 2));
16054 headerCols += spacer;
16055 }
16056 m_os << headerCols << '\n';
16057
16058 m_os << Catch::getLineOfChars<'-'>() << '\n';
16059 }
16060 }
16061 void close() {
16062 if (m_isOpen) {
16063 *this << RowBreak();

Callers

nothing calls this directly

Calls 3

RowBreakClass · 0.85
ColumnClass · 0.85
widthMethod · 0.80

Tested by

no test coverage detected