aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/duration_histogram_ut.cpp
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:46 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:46 +0300
commit8cbc307de0221f84c80c42dcbe07d40727537e2c (patch)
tree625d5a673015d1df891e051033e9fcde5c7be4e5 /library/cpp/messagebus/duration_histogram_ut.cpp
parent30d1ef3941e0dc835be7609de5ebee66958f215a (diff)
downloadydb-8cbc307de0221f84c80c42dcbe07d40727537e2c.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/messagebus/duration_histogram_ut.cpp')
-rw-r--r--library/cpp/messagebus/duration_histogram_ut.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/messagebus/duration_histogram_ut.cpp b/library/cpp/messagebus/duration_histogram_ut.cpp
index 01bcc095e9..f2fc1aa8a2 100644
--- a/library/cpp/messagebus/duration_histogram_ut.cpp
+++ b/library/cpp/messagebus/duration_histogram_ut.cpp
@@ -2,8 +2,8 @@
#include "duration_histogram.h"
-Y_UNIT_TEST_SUITE(TDurationHistogramTest) {
- Y_UNIT_TEST(BucketFor) {
+Y_UNIT_TEST_SUITE(TDurationHistogramTest) {
+ Y_UNIT_TEST(BucketFor) {
UNIT_ASSERT_VALUES_EQUAL(0u, TDurationHistogram::BucketFor(TDuration::MicroSeconds(0)));
UNIT_ASSERT_VALUES_EQUAL(0u, TDurationHistogram::BucketFor(TDuration::MicroSeconds(1)));
UNIT_ASSERT_VALUES_EQUAL(0u, TDurationHistogram::BucketFor(TDuration::MicroSeconds(900)));
@@ -19,7 +19,7 @@ Y_UNIT_TEST_SUITE(TDurationHistogramTest) {
UNIT_ASSERT_VALUES_EQUAL(TDurationHistogram::Buckets - 1, TDurationHistogram::BucketFor(TDuration::Hours(1)));
}
- Y_UNIT_TEST(Simple) {
+ Y_UNIT_TEST(Simple) {
TDurationHistogram h1;
h1.AddTime(TDuration::MicroSeconds(1));
UNIT_ASSERT_VALUES_EQUAL(1u, h1.Times.front());
@@ -29,7 +29,7 @@ Y_UNIT_TEST_SUITE(TDurationHistogramTest) {
UNIT_ASSERT_VALUES_EQUAL(1u, h1.Times.back());
}
- Y_UNIT_TEST(LabelFor) {
+ Y_UNIT_TEST(LabelFor) {
for (unsigned i = 0; i < TDurationHistogram::Buckets; ++i) {
TDurationHistogram::LabelBefore(i);
//Cerr << TDurationHistogram::LabelBefore(i) << "\n";