Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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]
130
fn 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]
138
fn msg_drops() {
Callers
15
build_host_isa
Function · 0.85
run
Method · 0.85
parse_inst_operands
Method · 0.85
execute
Method · 0.85
test_format_err_error_return
Function · 0.85
from
Method · 0.85
from
Method · 0.85
connect
Method · 0.85
connect
Method · 0.85
from
Method · 0.85
rustls_to_wasi_error
Function · 0.85
from
Method · 0.85
Calls
1
to_string
Method · 0.45
Tested by
no test coverage detected