]> 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 15:33:32 +0000 (16:33 +0100)
commitcbce676de8f8ece81fa24e7e87d039045143bbce
tree8a79f54d97854b4bcd6179af0299735b536418b8
parentf2db465c84fd958b66aad801fa24df4574e14f5a
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