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

Function assert_success

tests/all/component_model/bindgen.rs:861–863  ·  view source on GitHub ↗
(link_options: &LinkOptions)

Source from the content-addressed store, hash-verified

859 }
860
861 fn assert_success(link_options: &LinkOptions) {
862 run_with_options(link_options).unwrap();
863 }
864 fn assert_failure(link_options: &LinkOptions) {
865 let err = run_with_options(link_options).unwrap_err().to_string();
866 assert_eq!(

Callers 1

runFunction · 0.85

Calls 2

run_with_optionsFunction · 0.85
unwrapMethod · 0.45

Tested by 1

runFunction · 0.68