MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / selector_rejects_empty_inventory

Function selector_rejects_empty_inventory

crates/openshell-core/src/gpu.rs:444–452  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

442
443 #[test]
444 fn selector_rejects_empty_inventory() {
445 let inventory = CdiGpuInventory::new(["vendor.example/device=0"]);
446 let selector = CdiGpuDefaultSelector::new(inventory, false);
447
448 assert_eq!(
449 selector.next_device_ids(1),
450 Err(CdiGpuSelectionError::NoAvailableDevices)
451 );
452 }
453
454 #[test]
455 fn peek_does_not_advance_round_robin_cursor() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected