| 13 | namespace testing { |
| 14 | |
| 15 | static std::unique_ptr<main::QueryResult> validateQuery(main::Connection& conn, |
| 16 | std::string& query) { |
| 17 | auto result = conn.query(query); |
| 18 | if (!result->isSuccess()) { |
| 19 | throw Exception(std::format("Failed to execute statement: {}.\nError: {}", query, |
| 20 | result->getErrorMessage())); |
| 21 | } |
| 22 | return result; |
| 23 | } |
| 24 | |
| 25 | void InsertDatasetByRow::init() { |
| 26 | std::string datasetFullPath = TestHelper::appendLbugRootPath("dataset/" + datasetPath + "/"); |
no test coverage detected