]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/librbd: expand TestMockObjectMapDiffRequest edge case coverage
authorIlya Dryomov <idryomov@gmail.com>
Sat, 23 Dec 2023 14:19:09 +0000 (15:19 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Sat, 20 Jan 2024 15:33:32 +0000 (16:33 +0100)
commitba8bb7e32ee8276eba62d3f20f6ab8b74af78a2d
tree8aeaf9199df20bca38744e8fd6abff5739796fc4
parenta08c7da7dcc0e7f754f5e224c5cf79e25f097d71
test/librbd: expand TestMockObjectMapDiffRequest edge case coverage

For each covered edge case or error, run through the following
scenarios:

- where the edge case concerns snap_id_start
- where the edge case concerns snap_id_end
- where the edge case concerns intermediate snapshot and
  snap_id_start == 0 (diff against the beginning of time)
- where the edge case concerns intermediate snapshot and
  snap_id_start != 0 (diff from snapshot)

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