MCPcopy Create free account
hub / github.com/ceph/ceph / TEST_F

Function TEST_F

src/test/common/Throttle.cc:62–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60};
61
62TEST_F(ThrottleTest, Throttle) {
63 int64_t throttle_max = 10;
64 Throttle throttle(g_ceph_context, "throttle", throttle_max);
65 ASSERT_EQ(throttle.get_max(), throttle_max);
66 ASSERT_EQ(throttle.get_current(), 0);
67}
68
69TEST_F(ThrottleTest, take) {
70 int64_t throttle_max = 10;

Callers

nothing calls this directly

Calls 9

get_or_failMethod · 0.80
get_maxMethod · 0.45
get_currentMethod · 0.45
takeMethod · 0.45
getMethod · 0.45
putMethod · 0.45
createMethod · 0.45
joinMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected