()
| 24 | |
| 25 | #[tokio::test] |
| 26 | async fn table_new_async() -> Result<()> { |
| 27 | let mut config = Config::new(); |
| 28 | config.enable_compiler(false); |
| 29 | config.concurrency_support(false); |
| 30 | let engine = Engine::new(&config)?; |
| 31 | |
| 32 | OomTest::new() |
| 33 | .allow_alloc_after_oom(true) |
| 34 | .test_async(|| async { |
| 35 | let mut store = Store::try_new(&engine, ())?; |
| 36 | let ty = TableType::new(RefType::FUNCREF, 1, None); |
| 37 | let _table = Table::new_async(&mut store, ty, Ref::Func(None)).await?; |
| 38 | Ok(()) |
| 39 | }) |
| 40 | .await |
| 41 | } |
| 42 | |
| 43 | #[test] |
| 44 | fn table_grow() -> Result<()> { |
nothing calls this directly
no test coverage detected