()
| 23 | |
| 24 | #[tokio::test] |
| 25 | async fn smoke() { |
| 26 | let mut store = async_store(); |
| 27 | let func_ty = FuncType::new(store.engine(), None, None); |
| 28 | let func = Func::new_async(&mut store, func_ty, move |_caller, _params, _results| { |
| 29 | Box::new(async { Ok(()) }) |
| 30 | }); |
| 31 | run_smoke_test(&mut store, func).await; |
| 32 | run_smoke_typed_test(&mut store, func).await; |
| 33 | |
| 34 | let func = Func::wrap_async(&mut store, move |_caller, _: ()| Box::new(async { Ok(()) })); |
| 35 | run_smoke_test(&mut store, func).await; |
| 36 | run_smoke_typed_test(&mut store, func).await; |
| 37 | } |
| 38 | |
| 39 | #[tokio::test] |
| 40 | async fn smoke_host_func() -> Result<()> { |
nothing calls this directly
no test coverage detected