MCPcopy Create free account
hub / github.com/apache/impala / TEST_F

Function TEST_F

be/src/util/hdr-histogram-test.cc:24–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22class HdrHistogramTest : public testing::Test {};
23
24TEST_F(HdrHistogramTest, HistogramTotalSum) {
25 constexpr uint64_t MAX_VALUE = 10000;
26 HdrHistogram* histogram = new HdrHistogram(MAX_VALUE, 3);
27
28 histogram->Increment(100);
29 histogram->IncrementBy(10, 50);
30 EXPECT_EQ(histogram->TotalSum(), 600);
31
32 histogram->Increment(24000);
33 EXPECT_EQ(histogram->TotalSum(), 24600);
34}
35
36TEST_F(HdrHistogramTest, HistogramTotalSumIsMovedToNewHdrHistogram) {
37 constexpr uint64_t MAX_VALUE = 10000;

Callers

nothing calls this directly

Calls 3

IncrementMethod · 0.45
IncrementByMethod · 0.45
TotalSumMethod · 0.45

Tested by

no test coverage detected