MCPcopy Create free account
hub / github.com/cucumber/cucumber-cpp / addColumn

Method addColumn

src/Table.cpp:6–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4namespace internal {
5
6void Table::addColumn(const std::string column) {
7 if (rows.empty()) {
8 columns.push_back(column);
9 } else {
10 throw std::runtime_error("Cannot alter columns after rows have been added");
11 }
12}
13
14void Table::addRow(const row_type& row) {
15 const basic_type::size_type colSize = columns.size();

Callers 2

invokeStepMethod · 0.80
TESTFunction · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64