()
| 8 | use tempfile::TempDir; |
| 9 | |
| 10 | pub fn setup_mock_sysfs() -> (TempDir, SysfsRoot) { |
| 11 | let tmp = TempDir::new().unwrap(); |
| 12 | let sysfs = SysfsRoot::new(tmp.path()); |
| 13 | (tmp, sysfs) |
| 14 | } |
| 15 | |
| 16 | pub fn create_pci_device( |
| 17 | sysfs: &SysfsRoot, |
no test coverage detected