()
| 109 | |
| 110 | #[test] |
| 111 | fn table_fill() -> Result<()> { |
| 112 | let mut config = Config::new(); |
| 113 | config.enable_compiler(false); |
| 114 | config.concurrency_support(false); |
| 115 | let engine = Engine::new(&config)?; |
| 116 | |
| 117 | OomTest::new().allow_alloc_after_oom(true).test(|| { |
| 118 | let mut store = Store::try_new(&engine, ())?; |
| 119 | let ty = TableType::new(RefType::FUNCREF, 4, None); |
| 120 | let table = Table::new(&mut store, ty, Ref::Func(None))?; |
| 121 | table.fill(&mut store, 0, Ref::Func(None), 4)?; |
| 122 | Ok(()) |
| 123 | }) |
| 124 | } |
| 125 | |
| 126 | #[test] |
| 127 | fn table_get() -> Result<()> { |
nothing calls this directly
no test coverage detected