]> git.apps.os.sepia.ceph.com Git - ceph-ci.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>
Fri, 2 Feb 2024 14:36:57 +0000 (15:36 +0100)
commit78b301a63751f8229d2786c6d7a2c76022cff05e
tree60238299ce28a548265190854bd6f181a82795a1
parent2b03b30725f83ba5222f627fd660fcfbbfaed128
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