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

Function TEST

tests/unit/TableTest.cpp:6–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4using namespace cucumber::internal;
5
6TEST(TableTest, forbidsRowsNotMatchingTableColumnsSize) {
7 Table t;
8 t.addColumn("C1");
9
10 EXPECT_THROW(
11 {
12 Table::row_type row;
13 t.addRow(row);
14 },
15 std::range_error
16 );
17
18 EXPECT_NO_THROW({ t.addRow({"R1"}); });
19
20 EXPECT_THROW({ t.addRow({"R1", "R2"}); }, std::range_error);
21}
22
23TEST(TableTest, rowsCannotBeAddedBeforeColumnsAreSet) {
24 Table t;

Callers

nothing calls this directly

Calls 2

addColumnMethod · 0.80
addRowMethod · 0.80

Tested by

no test coverage detected