Open JonathanWoollett-Light opened 9 months ago
https://github.com/rust-vmm/vm-memory/pull/260 introduced error cases to resolve https://github.com/rust-vmm/vm-memory/issues/269 but did not cover these with regression tests.
Writes tests that exercise the paths where GuestMemory::try_access returns Err(Error::CallbackOutOfRange) and Err(Error::GuestAddressOverflow).
GuestMemory::try_access
Err(Error::CallbackOutOfRange)
Err(Error::GuestAddressOverflow)
https://github.com/rust-vmm/vm-memory/pull/260 introduced error cases to resolve https://github.com/rust-vmm/vm-memory/issues/269 but did not cover these with regression tests.
Writes tests that exercise the paths where
GuestMemory::try_access
returnsErr(Error::CallbackOutOfRange)
andErr(Error::GuestAddressOverflow)
.