()
| 117 | |
| 118 | #[tokio::test] |
| 119 | async fn require_async_with_linker_func_wrap() -> Result<()> { |
| 120 | let engine = Engine::default(); |
| 121 | let mut store = Store::new(&engine, ()); |
| 122 | let mut linker = Linker::new(store.engine()); |
| 123 | linker.func_wrap_async("", "", |_, ()| Box::new(async {}))?; |
| 124 | let module = Module::new(store.engine(), r#"(module (import "" "" (func)))"#)?; |
| 125 | assert!(linker.instantiate(&mut store, &module).is_err()); |
| 126 | linker.instantiate_async(&mut store, &module).await?; |
| 127 | Ok(()) |
| 128 | } |
| 129 | |
| 130 | #[test] |
| 131 | fn require_async_with_debug_handler() -> Result<()> { |
nothing calls this directly
no test coverage detected