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

Function msg

crates/core/tests/tests.rs:130–135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128
129#[test]
130fn msg() {
131 let error = Error::msg("uh oh!");
132 assert!(error.is::<&str>());
133 let msg = error.to_string();
134 assert_eq!(msg, "uh oh!");
135}
136
137#[test]
138fn msg_drops() {

Callers 15

build_host_isaFunction · 0.85
runMethod · 0.85
parse_inst_operandsMethod · 0.85
executeMethod · 0.85
fromMethod · 0.85
fromMethod · 0.85
connectMethod · 0.85
connectMethod · 0.85
fromMethod · 0.85
rustls_to_wasi_errorFunction · 0.85
fromMethod · 0.85

Calls 1

to_stringMethod · 0.45

Tested by

no test coverage detected