| 291 | } |
| 292 | |
| 293 | void verifyDataAndSqlPaths(const BoltException& e, const VectorPtr& data) { |
| 294 | auto inputPath = extractInputPath(e.additionalContext()); |
| 295 | auto copy = restoreVector(inputPath); |
| 296 | assertEqualVectors(data, copy); |
| 297 | |
| 298 | auto sqlPath = extractSqlPath(e.additionalContext()); |
| 299 | auto sql = readSqlFromFile(sqlPath); |
| 300 | ASSERT_NO_THROW(compileExpression(sql, asRowType(data->type()))); |
| 301 | |
| 302 | auto allSqlsPath = extractAllExprSqlPath(e.additionalContext()); |
| 303 | auto allSqls = readSqlFromFile(allSqlsPath); |
| 304 | ASSERT_NO_THROW(compileMultipleExprs(allSqls, asRowType(data->type()))); |
| 305 | } |
| 306 | |
| 307 | std::string readSqlFromFile(const std::string& path) { |
| 308 | std::ifstream inputFile(path, std::ifstream::binary); |
nothing calls this directly
no test coverage detected