Function
assert_failure
(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(); |