| 192 | }; |
| 193 | |
| 194 | std::string ReadFile(const std::string& name) { |
| 195 | std::ifstream file(name.c_str()); |
| 196 | GOOGLE_CHECK(file.is_open()) << "Couldn't find file '" << name << |
| 197 | "', please make sure you are running " |
| 198 | "this command from the benchmarks/ " |
| 199 | "directory.\n"; |
| 200 | return std::string((std::istreambuf_iterator<char>(file)), |
| 201 | std::istreambuf_iterator<char>()); |
| 202 | } |
| 203 | |
| 204 | template <class T> |
| 205 | void RegisterBenchmarksForType(const BenchmarkDataset& dataset) { |
no outgoing calls
no test coverage detected