A test helper that creates a mock reboot service which responds based on a caller-provided function.
Nothing special, other than including this crate:
deps = [ "//src/sys/pkg/testing/mock-reboot", ]
See the tests in src/lib.rs
for examples of using this crate in various scenarios, including making reboot calls succeed, fail, or act on external data.