()
| 128 | #[test] |
| 129 | #[cfg_attr(miri, ignore)] |
| 130 | fn deserialize_from_serialized() -> Result<()> { |
| 131 | let engine = Engine::default(); |
| 132 | let buffer1 = serialize( |
| 133 | &engine, |
| 134 | "(module (func (export \"run\") (result i32) i32.const 42))", |
| 135 | )?; |
| 136 | let buffer2 = unsafe { Module::deserialize(&engine, &buffer1)?.serialize()? }; |
| 137 | assert!(buffer1 == buffer2); |
| 138 | Ok(()) |
| 139 | } |
| 140 | |
| 141 | #[test] |
| 142 | #[cfg_attr(miri, ignore)] |
nothing calls this directly
no test coverage detected