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

Function wizen_and_run_wat

crates/wizer/tests/all/component.rs:182–186  ·  view source on GitHub ↗
(expected: i32, wat: &str)

Source from the content-addressed store, hash-verified

180}
181
182async fn wizen_and_run_wat(expected: i32, wat: &str) -> Result<()> {
183 let wasm = wat::parse_str(wat)?;
184 let wasm = wizen(&wasm).await?;
185 run_wasm(0, expected, &wasm).await
186}
187async fn run_wasm(input: i32, expected: i32, wasm: &[u8]) -> Result<()> {
188 let mut store = store()?;
189 let module =

Callers 9

simpleFunction · 0.85
snapshot_global_i32Function · 0.85
snapshot_global_i64Function · 0.85
snapshot_global_f32Function · 0.85
snapshot_global_f64Function · 0.85
snapshot_memoryFunction · 0.85
nested_componentsFunction · 0.85
multiple_modulesFunction · 0.85
leave_wasip1_initializeFunction · 0.85

Calls 2

wizenFunction · 0.70
run_wasmFunction · 0.70

Tested by

no test coverage detected