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

Function write_temp_dll

src/pe_parser.rs:254–261  ·  view source on GitHub ↗
(name: &str, data: &[u8])

Source from the content-addressed store, hash-verified

252 }
253
254 fn write_temp_dll(name: &str, data: &[u8]) -> std::path::PathBuf {
255 let dir = std::env::temp_dir().join("rustpacker_test_pe_parser");
256 fs::create_dir_all(&dir).unwrap();
257 let path = dir.join(name);
258 let mut f = fs::File::create(&path).unwrap();
259 f.write_all(data).unwrap();
260 path
261 }
262
263 #[test]
264 fn test_parse_named_exports() {

Callers 4

test_parse_named_exportsFunction · 0.85
test_parse_no_exportsFunction · 0.85
test_parse_invalid_fileFunction · 0.85
test_parse_single_exportFunction · 0.85

Calls

no outgoing calls

Tested by 4

test_parse_named_exportsFunction · 0.68
test_parse_no_exportsFunction · 0.68
test_parse_invalid_fileFunction · 0.68
test_parse_single_exportFunction · 0.68