()
| 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() { |
nothing calls this directly
no test coverage detected