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

Function can_deserialize_pulley_module

tests/all/pulley.rs:28–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26
27#[test]
28fn can_deserialize_pulley_module() -> Result<()> {
29 let engine = Engine::new(&pulley_config())?;
30 let bytes = engine.precompile_module(b"(module)")?;
31 unsafe {
32 Module::deserialize(&engine, &bytes)?;
33 }
34 Ok(())
35}
36
37#[test]
38fn pulley_wrong_architecture_is_rejected() -> Result<()> {

Callers

nothing calls this directly

Calls 5

pulley_configFunction · 0.85
OkFunction · 0.85
precompile_moduleMethod · 0.80
newFunction · 0.50
deserializeFunction · 0.50

Tested by

no test coverage detected