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

Function test_probe_skips_non_gpu_nvidia

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

Source from the content-addressed store, hash-verified

210
211 #[test]
212 fn test_probe_skips_non_gpu_nvidia() {
213 let (tmp, sysfs) = setup_mock_sysfs();
214 create_pci_device(
215 &sysfs,
216 tmp.path(),
217 "0000:2d:00.1",
218 "0x10de",
219 "0x228b",
220 "0x040300",
221 42,
222 );
223
224 let gpus = probe_host_nvidia_vfio_readiness(&sysfs);
225 assert!(gpus.is_empty());
226 }
227
228 #[test]
229 fn test_is_gpu_class() {

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