| 20 | } |
| 21 | |
| 22 | void Benchmark::loadBenchmark(const std::string& benchmarkPath) { |
| 23 | BenchmarkParser parser; |
| 24 | const auto parsedBenchmarks = parser.parseBenchmarkFile(benchmarkPath); |
| 25 | DASSERT(parsedBenchmarks.size() == 1); |
| 26 | const auto queryConfig = parsedBenchmarks[0].get(); |
| 27 | preRun = queryConfig->preRun; |
| 28 | query = queryConfig->query; |
| 29 | postRun = queryConfig->postRun; |
| 30 | name = queryConfig->name; |
| 31 | expectedOutput = queryConfig->expectedTuples; |
| 32 | compareResult = queryConfig->compareResult; |
| 33 | expectedNumTuples = queryConfig->expectedNumTuples; |
| 34 | } |
| 35 | |
| 36 | std::unique_ptr<QueryResult> Benchmark::run() const { |
| 37 | return conn->query(query); |
nothing calls this directly
no test coverage detected