mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
A common pattern in the test code is to create a temporary file, format it as QCOW2 and then open it as a QcowDisk. Create a helper struct that can be used in those tests. This is marked as #[cfg(test)] as initially it will only be used by the test suite. Assisted-by: Claude:claude-opus-4-7 Signed-off-by: Rob Bradford <rbradford@meta.com>