| 41 | }; |
| 42 | |
| 43 | TEST_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 | |
| 59 | TEST_F(TestCls2PCQueue, AsyncGetCapacity) |
| 60 | { |
nothing calls this directly
no test coverage detected