]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/librbd: refactor TestMockObjectMapDiffRequest tests
authorIlya Dryomov <idryomov@gmail.com>
Thu, 21 Dec 2023 15:50:31 +0000 (16:50 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Sat, 20 Jan 2024 18:00:24 +0000 (19:00 +0100)
commit62cca953f5f5f7b3ec21937a6ed163e8100d4a5f
treedd19402d7704f62b88faefec19264381ae418fc0
parent642f0b7eb70f0397b7d0bed9373f0af35f605b7d
test/librbd: refactor TestMockObjectMapDiffRequest tests

In preparation for multiple similarly configured MockTestImageCtx
objects being used in a single test, centralize their creation and add
a couple of helpers for setting expectations from a callback.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 718f6b5546890179f66d5ffadbae9e9cb0e6c97b)
src/test/librbd/object_map/test_mock_DiffRequest.cc