()
| 348 | |
| 349 | #[tokio::test] |
| 350 | async fn async_with_pooling_stacks() { |
| 351 | let mut pool = crate::small_pool_config(); |
| 352 | pool.total_stacks(1) |
| 353 | .max_memory_size(1 << 16) |
| 354 | .table_elements(0); |
| 355 | let mut config = Config::new(); |
| 356 | config.allocation_strategy(InstanceAllocationStrategy::Pooling(pool)); |
| 357 | config.memory_guard_size(0); |
| 358 | config.memory_reservation(1 << 16); |
| 359 | |
| 360 | let engine = Engine::new(&config).unwrap(); |
| 361 | let mut store = Store::new(&engine, ()); |
| 362 | let func_ty = FuncType::new(store.engine(), None, None); |
| 363 | let func = Func::new_async(&mut store, func_ty, move |_caller, _params, _results| { |
| 364 | Box::new(async { Ok(()) }) |
| 365 | }); |
| 366 | |
| 367 | run_smoke_test(&mut store, func).await; |
| 368 | run_smoke_typed_test(&mut store, func).await; |
| 369 | } |
| 370 | |
| 371 | #[tokio::test] |
| 372 | async fn async_host_func_with_pooling_stacks() -> Result<()> { |
nothing calls this directly
no test coverage detected