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

Function test_generate_proxy_output

src/dll_proxy.rs:120–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118
119 #[test]
120 fn test_generate_proxy_output() {
121 let exports = vec![
122 DllExport { name: Some("Init".into()), ordinal: 1 },
123 ];
124 let output = generate_proxy(&exports, "mylib");
125 assert_eq!(output.original_dll_name, "mylib_orig.dll");
126 assert!(output.proxy_source.contains("#[export_name = \"Init\"]"));
127 assert!(output.proxy_source.contains("b\"mylib_orig.dll\\0\""));
128 }
129
130 #[test]
131 fn test_proxy_source_init_resolves_all() {

Callers

nothing calls this directly

Calls 1

generate_proxyFunction · 0.85

Tested by

no test coverage detected