MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / validateStatement

Function validateStatement

test/test_runner/test_parser.cpp:291–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289}
290
291void validateStatement(const TestStatement& statement, const std::string& path,
292 const std::string& line) {
293 if (statement.type != TestStatementType::INVALID) {
294 throw TestException("Invalid statement [" + path + ":" + line + "].");
295 }
296}
297
298TestStatement TestParser::parseStatement(const std::string& testCaseName) {
299 TestStatement statement;

Callers 1

parseStatementMethod · 0.85

Calls 1

TestExceptionClass · 0.85

Tested by

no test coverage detected