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