vm-virtio: checked_descriptor: Introduce unit_tests module

Add a unit_tests module with the first test for CheckedDescriptorIter,
covering the happy path where a valid single descriptor is yielded and
the iterator reports no failure. Wire up the virtio-bindings dev
dependency and local test helpers needed by the test.

Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
This commit is contained in:
Anatol Belski
2026-05-14 16:57:52 +02:00
committed by Rob Bradford
parent 2bf5464f92
commit d24e2fd140
3 changed files with 57 additions and 0 deletions
+3
View File
@@ -19,3 +19,6 @@ vm-memory = { workspace = true, features = [
[lints]
workspace = true
[dev-dependencies]
virtio-bindings = { workspace = true }