| 16 | namespace testing { |
| 17 | |
| 18 | static std::unique_ptr<main::QueryResult> validateQuery(main::Connection& conn, |
| 19 | std::string& query) { |
| 20 | auto result = conn.query(query); |
| 21 | if (!result->isSuccess()) { |
| 22 | throw Exception(std::format("Failed to execute statement: {}.\nError: {}", query, |
| 23 | result->getErrorMessage())); |
| 24 | } |
| 25 | return result; |
| 26 | } |
| 27 | |
| 28 | void SplitMultiCopyRandom::genSeedIfNecessary() { |
| 29 | if (seed.size() == 2) { |
no test coverage detected