()
| 125 | |
| 126 | #[test] |
| 127 | fn table_get() -> Result<()> { |
| 128 | let mut config = Config::new(); |
| 129 | config.enable_compiler(false); |
| 130 | config.concurrency_support(false); |
| 131 | let engine = Engine::new(&config)?; |
| 132 | |
| 133 | OomTest::new().allow_alloc_after_oom(true).test(|| { |
| 134 | let mut store = Store::try_new(&engine, ())?; |
| 135 | let ty = TableType::new(RefType::FUNCREF, 1, None); |
| 136 | let table = Table::new(&mut store, ty, Ref::Func(None))?; |
| 137 | let val = table.get(&mut store, 0); |
| 138 | assert!(val.is_some()); |
| 139 | Ok(()) |
| 140 | }) |
| 141 | } |
| 142 | |
| 143 | #[test] |
| 144 | fn table_ty() -> Result<()> { |
nothing calls this directly
no test coverage detected