MCPcopy Create free account
hub / github.com/apache/qpid-proton / addRow

Method addRow

tests/include/catch.hpp:16690–16702  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16688 : label( std::move( _label ) ),
16689 colour( _colour ) {}
16690 SummaryColumn addRow( std::size_t count ) {
16691 ReusableStringStream rss;
16692 rss << count;
16693 std::string row = rss.str();
16694 for (auto& oldRow : rows) {
16695 while (oldRow.size() < row.size())
16696 oldRow = ' ' + oldRow;
16697 while (oldRow.size() > row.size())
16698 row = ' ' + row;
16699 }
16700 rows.push_back(row);
16701 return *this;
16702 }
16703
16704 std::string label;
16705 Colour::Code colour;

Callers 1

printTotalsMethod · 0.80

Calls 2

strMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected