Skip to content

Commit c4da62b

Browse files
committed
run clang-format in metrics module
1 parent 49c071d commit c4da62b

53 files changed

Lines changed: 1738 additions & 2283 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

metrics/src/tests/countmetrictest.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
22

3-
#include <vespa/vespalib/objects/floatingpointtype.h>
43
#include <vespa/metrics/countmetric.h>
4+
#include <vespa/vespalib/objects/floatingpointtype.h>
5+
56
#include <gtest/gtest.h>
67

78
using vespalib::Double;
89

910
namespace metrics {
1011

11-
TEST(CountMetricTest, testLongCountMetric)
12-
{
12+
TEST(CountMetricTest, testLongCountMetric) {
1313
LongCountMetric m("test", {{"tag"}}, "description");
1414
m.set(100);
1515
EXPECT_EQ(uint64_t(100), m.getValue());
@@ -39,4 +39,4 @@ TEST(CountMetricTest, testLongCountMetric)
3939
EXPECT_EQ(int64_t(84), o.getLongValue("value"));
4040
}
4141

42-
}
42+
} // namespace metrics

metrics/src/tests/metric_timer_test.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
22

3-
#include <vespa/metrics/valuemetric.h>
43
#include <vespa/metrics/metrictimer.h>
4+
#include <vespa/metrics/valuemetric.h>
55
#include <vespa/vespalib/gtest/gtest.h>
6+
67
#include <thread>
78

89
namespace metrics {
910

1011
using namespace std::literals::chrono_literals;
1112

12-
template <typename MetricType>
13-
void do_test_metric_timer_for_metric_type() {
13+
template <typename MetricType> void do_test_metric_timer_for_metric_type() {
1414
MetricTimer timer;
15-
MetricType metric("foo", {}, "");
15+
MetricType metric("foo", {}, "");
1616
std::this_thread::sleep_for(5ms); // Guaranteed to be monotonic time
1717
timer.stop(metric);
1818
// getDoubleValue() is present for both long and double metric types
@@ -27,5 +27,4 @@ TEST(MetricTimerTest, timer_duration_is_correct_for_long_value_metric) {
2727
do_test_metric_timer_for_metric_type<LongAverageMetric>();
2828
}
2929

30-
}
31-
30+
} // namespace metrics

0 commit comments

Comments
 (0)