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

Function bare_bones

tests/all/component_model/aot.rs:21–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19
20#[test]
21fn bare_bones() -> Result<()> {
22 let engine = super::engine();
23 let component = Component::new(&engine, "(component)")?.serialize()?;
24 assert_eq!(component, engine.precompile_component(b"(component)")?);
25
26 let component = unsafe { Component::deserialize(&engine, &component)? };
27 let mut store = Store::new(&engine, ());
28 Linker::new(&engine).instantiate(&mut store, &component)?;
29
30 Ok(())
31}
32
33#[test]
34#[cfg_attr(miri, ignore)]

Callers

nothing calls this directly

Calls 6

OkFunction · 0.85
engineFunction · 0.50
newFunction · 0.50
deserializeFunction · 0.50
serializeMethod · 0.45
instantiateMethod · 0.45

Tested by

no test coverage detected