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

Function assert_failure

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

Source from the content-addressed store, hash-verified

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!(
867 err,
868 "component imports instance `foo:foo/my-interface`, but a matching implementation was not found in the linker"
869 );
870 }
871
872 fn run_with_options(link_options: &LinkOptions) -> Result<()> {
873 let engine = engine();

Callers 1

runFunction · 0.85

Calls 2

run_with_optionsFunction · 0.85
to_stringMethod · 0.45

Tested by 1

runFunction · 0.68