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

Method addRow

src/Table.cpp:14–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14void Table::addRow(const row_type& row) {
15 const basic_type::size_type colSize = columns.size();
16 if (colSize == 0) {
17 throw std::runtime_error("No column defined yet");
18 } else if (colSize != row.size()) {
19 throw std::range_error("Row size does not match the table column size");
20 } else {
21 rows.push_back(buildHashRow(row));
22 }
23}
24
25Table::hash_row_type Table::buildHashRow(const row_type& row) {
26 hash_row_type hashRow;

Callers 2

invokeStepMethod · 0.80
TESTFunction · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64