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

Function TEST_F

test/bvar_reducer_unittest.cpp:36–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34};
35
36TEST_F(ReducerTest, atomicity) {
37 ASSERT_EQ(sizeof(int32_t), sizeof(bvar::detail::ElementContainer<int32_t>));
38 ASSERT_EQ(sizeof(int64_t), sizeof(bvar::detail::ElementContainer<int64_t>));
39 ASSERT_EQ(sizeof(float), sizeof(bvar::detail::ElementContainer<float>));
40 ASSERT_EQ(sizeof(double), sizeof(bvar::detail::ElementContainer<double>));
41}
42
43TEST_F(ReducerTest, adder) {
44 bvar::Adder<uint32_t> reducer1;

Callers

nothing calls this directly

Calls 12

ReducerTest_windowFunction · 0.85
SetLogSinkFunction · 0.85
fieldMethod · 0.80
FooClass · 0.70
validMethod · 0.45
get_valueMethod · 0.45
findMethod · 0.45
c_strMethod · 0.45
lengthMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected