]> git.apps.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 15:06:53 +0000 (16:06 +0100)
commit718f6b5546890179f66d5ffadbae9e9cb0e6c97b
tree0cc2849159b5f765d81f0c35b621034bab80f240
parent64a5afcaad7b61a20f630aca064c2953380c70c1
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>
src/test/librbd/object_map/test_mock_DiffRequest.cc