diff options
author | Dominic Hamon <dominichamon@users.noreply.github.com> | 2021-11-10 16:22:31 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-10 16:22:31 +0000 |
commit | c07a498924aba9983f78b8204f157c107998389d (patch) | |
tree | 573f84cec9c4bc3ad5c37587a604cc053eb62202 /test/output_test_helper.cc | |
parent | fcef4fb6697c78d7b7ace62da1bf7d6e329f5b1e (diff) | |
download | google-benchmark-c07a498924aba9983f78b8204f157c107998389d.tar.gz |
format tests with clang-format (#1282)
Diffstat (limited to 'test/output_test_helper.cc')
-rw-r--r-- | test/output_test_helper.cc | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/test/output_test_helper.cc b/test/output_test_helper.cc index 871e6de..b7f06f5 100644 --- a/test/output_test_helper.cc +++ b/test/output_test_helper.cc @@ -317,9 +317,7 @@ int Results::NumThreads() const { return num; } -double Results::NumIterations() const { - return GetAs<double>("iterations"); -} +double Results::NumIterations() const { return GetAs<double>("iterations"); } double Results::GetTime(BenchmarkTime which) const { BM_CHECK(which == kCpuTime || which == kRealTime); @@ -468,9 +466,8 @@ static char RandomHexChar() { static std::string GetRandomFileName() { std::string model = "test.%%%%%%"; - for (auto & ch : model) { - if (ch == '%') - ch = RandomHexChar(); + for (auto& ch : model) { + if (ch == '%') ch = RandomHexChar(); } return model; } @@ -487,8 +484,7 @@ static std::string GetTempFileName() { int retries = 3; while (--retries) { std::string name = GetRandomFileName(); - if (!FileExists(name)) - return name; + if (!FileExists(name)) return name; } std::cerr << "Failed to create unique temporary file name" << std::endl; std::abort(); |