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

Function module_component_mismatch

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

Source from the content-addressed store, hash-verified

5
6#[test]
7fn module_component_mismatch() -> Result<()> {
8 let engine = super::engine();
9 let module = Module::new(&engine, "(module)")?.serialize()?;
10 let component = Component::new(&engine, "(component)")?.serialize()?;
11
12 unsafe {
13 assert!(Module::deserialize(&engine, &component).is_err());
14 assert!(Component::deserialize(&engine, &module).is_err());
15 }
16
17 Ok(())
18}
19
20#[test]
21fn bare_bones() -> Result<()> {

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected