MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / linker_alias

Function linker_alias

crates/fuzzing/tests/oom/linker.rs:304–316  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

302
303#[test]
304fn linker_alias() -> Result<()> {
305 let mut config = Config::new();
306 config.enable_compiler(false);
307 config.concurrency_support(false);
308 let engine = Engine::new(&config)?;
309
310 OomTest::new().test(|| {
311 let mut linker = Linker::<()>::new(&engine);
312 linker.func_wrap("mod", "func", || {})?;
313 linker.alias("mod", "func", "mod2", "func2")?;
314 Ok(())
315 })
316}
317
318#[test]
319fn linker_alias_module() -> Result<()> {

Callers

nothing calls this directly

Calls 7

OkFunction · 0.85
enable_compilerMethod · 0.80
aliasMethod · 0.80
newFunction · 0.50
concurrency_supportMethod · 0.45
testMethod · 0.45
func_wrapMethod · 0.45

Tested by

no test coverage detected