| 755 | } |
| 756 | |
| 757 | std::string ReadText(const std::string& filename) { |
| 758 | const std::string benchmark_data_dir = PROJECT_SOURCE_DIR "/test/benchmark/"; |
| 759 | const std::string data_path = benchmark_data_dir + filename; |
| 760 | std::ifstream stream(data_path.c_str()); |
| 761 | return std::string((std::istreambuf_iterator<char>(stream)), |
| 762 | std::istreambuf_iterator<char>()); |
| 763 | } |
| 764 | |
| 765 | static void BM_Initialization(benchmark::State& state, |
| 766 | const BenchmarkConfig& config) { |
no outgoing calls
no test coverage detected