()
| 309 | |
| 310 | #[test] |
| 311 | fn test_parse_single_export() { |
| 312 | let pe = build_minimal_pe_dll(&["DllGetClassObject"]); |
| 313 | let path = write_temp_dll("single_export.dll", &pe); |
| 314 | let exports = parse_exports(&path).unwrap(); |
| 315 | |
| 316 | assert_eq!(exports.len(), 1); |
| 317 | assert_eq!(exports[0].name.as_deref(), Some("DllGetClassObject")); |
| 318 | assert_eq!(exports[0].ordinal, 1); |
| 319 | |
| 320 | fs::remove_file(&path).ok(); |
| 321 | } |
| 322 | } |
nothing calls this directly
no test coverage detected