()
| 3 | |
| 4 | #[test] |
| 5 | fn successful_instantiation() -> Result<()> { |
| 6 | let pool = crate::small_pool_config(); |
| 7 | let mut config = Config::new(); |
| 8 | config.allocation_strategy(pool); |
| 9 | config.memory_guard_size(0); |
| 10 | config.memory_reservation(1 << 16); |
| 11 | |
| 12 | let engine = Engine::new(&config)?; |
| 13 | let module = Module::new(&engine, r#"(module (memory 1) (table 10 funcref))"#)?; |
| 14 | |
| 15 | // Module should instantiate |
| 16 | let mut store = Store::new(&engine, ()); |
| 17 | Instance::new(&mut store, &module, &[])?; |
| 18 | |
| 19 | Ok(()) |
| 20 | } |
| 21 | |
| 22 | #[test] |
| 23 | #[cfg_attr(miri, ignore)] |
nothing calls this directly
no test coverage detected