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

Method ok

tests/all/component_model/bindgen.rs:977–979  ·  view source on GitHub ↗

NB: these must return an `anyhow::Result` since we `bindgen!`ed with `anyhow: true`.

(&mut self)

Source from the content-addressed store, hash-verified

975 // NB: these must return an `anyhow::Result` since we `bindgen!`ed
976 // with `anyhow: true`.
977 fn ok(&mut self) -> anyhow_for_testing::Result<u32> {
978 Ok(42)
979 }
980 fn trap(&mut self) -> anyhow_for_testing::Result<u32> {
981 anyhow_for_testing::bail!("anyhow error")
982 }

Callers 8

mainFunction · 0.45
spawnMethod · 0.45
guest_debug_cli_fib_stepFunction · 0.45
parse_http_addrFunction · 0.45

Calls 1

OkFunction · 0.85

Tested by 1

spawnMethod · 0.36