| 349 | |
| 350 | private: |
| 351 | std::string BuildTempPath(const std::string& source_config_path, |
| 352 | const std::string& suffix) { |
| 353 | const std::string base_name = |
| 354 | GetBaseNameWithoutExtension(source_config_path) + "." + suffix; |
| 355 | const std::string pid = GetProcessIdString(); |
| 356 | std::string path; |
| 357 | do { |
| 358 | path = BenchmarkTempDirectory() + base_name + "." + pid + "." + |
| 359 | std::to_string(counter_++) + ".json"; |
| 360 | } while (IsRegularFile(path)); |
| 361 | return path; |
| 362 | } |
| 363 | |
| 364 | int counter_ = 0; |
| 365 | std::vector<std::string> paths_; |
nothing calls this directly
no test coverage detected