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

Function test_probe_skips_non_nvidia

crates/openshell-vfio/src/gpu.rs:195–209  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

193
194 #[test]
195 fn test_probe_skips_non_nvidia() {
196 let (tmp, sysfs) = setup_mock_sysfs();
197 create_pci_device(
198 &sysfs,
199 tmp.path(),
200 "0000:01:00.0",
201 "0x8086",
202 "0x1234",
203 "0x030000",
204 10,
205 );
206
207 let gpus = probe_host_nvidia_vfio_readiness(&sysfs);
208 assert!(gpus.is_empty());
209 }
210
211 #[test]
212 fn test_probe_skips_non_gpu_nvidia() {

Callers

nothing calls this directly

Calls 4

setup_mock_sysfsFunction · 0.85
create_pci_deviceFunction · 0.85
pathMethod · 0.80

Tested by

no test coverage detected