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

Function TEST_F

src/test/cls_2pc_queue/test_cls_2pc_queue.cc:43–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41};
42
43TEST_F(TestCls2PCQueue, GetCapacity)
44{
45 const std::string queue_name = __PRETTY_FUNCTION__;
46 const auto max_size = 8*1024;
47 librados::ObjectWriteOperation op;
48 op.create(true);
49 cls_2pc_queue_init(op, queue_name, max_size);
50 ASSERT_EQ(0, ioctx.operate(queue_name, &op));
51
52 uint64_t size;
53
54 const int ret = cls_queue_get_capacity(ioctx, queue_name, size);
55 ASSERT_EQ(0, ret);
56 ASSERT_EQ(max_size, size);
57}
58
59TEST_F(TestCls2PCQueue, AsyncGetCapacity)
60{

Callers

nothing calls this directly

Calls 15

for_eachFunction · 0.85
cls_2pc_queue_initFunction · 0.50
cls_queue_get_capacityFunction · 0.50
cls_2pc_queue_reserveFunction · 0.50
to_stringFunction · 0.50
cls_2pc_queue_commitFunction · 0.50

Tested by

no test coverage detected