MCPcopy Create free account
hub / github.com/Nariod/RustPacker / test_parse_single_export

Function test_parse_single_export

src/pe_parser.rs:311–321  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 3

build_minimal_pe_dllFunction · 0.85
write_temp_dllFunction · 0.85
parse_exportsFunction · 0.85

Tested by

no test coverage detected