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

Function test_parse_invalid_file

src/pe_parser.rs:296–301  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

294
295 #[test]
296 fn test_parse_invalid_file() {
297 let path = write_temp_dll("not_a_dll.bin", b"this is not a PE file");
298 let result = parse_exports(&path);
299 assert!(result.is_err());
300 fs::remove_file(&path).ok();
301 }
302
303 #[test]
304 fn test_dll_stem() {

Callers

nothing calls this directly

Calls 2

write_temp_dllFunction · 0.85
parse_exportsFunction · 0.85

Tested by

no test coverage detected