]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
test/librbd: redo TestMockObjectMapDiffRequest.*Delta tests
authorIlya Dryomov <idryomov@gmail.com>
Sun, 3 Dec 2023 15:39:39 +0000 (16:39 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 15 Dec 2023 10:37:22 +0000 (11:37 +0100)
commit7aff35c987b9f0e9f0d4198d032737da0ce12b36
tree053f6caf36c4a2086f9babf853eede3c89a390ec
parentf47f7f87d05da661786415dd8fbb0ac67c530e18
test/librbd: redo TestMockObjectMapDiffRequest.*Delta tests

Existing *Delta tests cover:

- beginning of time -> HEAD, through intermediate snap
- snap -> snap, directly
- snap -> HEAD, directly

But coverage is too weak: none of the weird OBJECT_PENDING cases and
only a single diff-iterate vs deep-copy case is tested, for example.

Coverage is missing completely for:

- beginning of time -> HEAD, directly
- beginning of time -> snap, directly
- beginning of time -> snap, through intermediate snap
- snap -> snap, through intermediate snap
- snap -> HEAD, through intermediate snap

This adds the following tests:

- FromBeginningToHead
- FromBeginningToHeadIntermediateSnap (expands FullDelta)
- FromBeginningToSnap
- FromBeginningToSnapIntermediateSnap
- FromSnapToSnap (expands IntermediateDelta)
- FromSnapToSnapIntermediateSnap
- FromSnapToHead (expands EndDelta)
- FromSnapToHeadIntermediateSnap

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/test/librbd/object_map/test_mock_DiffRequest.cc