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

Function get_module_and_store

tests/all/debug.rs:36–47  ·  view source on GitHub ↗
(
    c: C,
    wat: &str,
)

Source from the content-addressed store, hash-verified

34}
35
36fn get_module_and_store<C: Fn(&mut Config)>(
37 c: C,
38 wat: &str,
39) -> wasmtime::Result<(Module, Store<()>)> {
40 let mut config = Config::default();
41 config.guest_debug(true);
42 config.wasm_exceptions(true);
43 c(&mut config);
44 let engine = Engine::new(&config)?;
45 let module = Module::new(&engine, wat)?;
46 Ok((module, Store::new(&engine, ())))
47}
48
49fn test_stack_values<
50 C: Fn(&mut Config),

Callers 11

test_stack_valuesFunction · 0.85
caught_exception_eventsFunction · 0.85
hostcall_trap_eventsFunction · 0.85
hostcall_error_eventsFunction · 0.85
breakpoint_eventsFunction · 0.85
epoch_eventsFunction · 0.85

Calls 5

cFunction · 0.85
OkFunction · 0.85
guest_debugMethod · 0.80
newFunction · 0.50
wasm_exceptionsMethod · 0.45

Tested by 1

test_stack_valuesFunction · 0.68