()
| 72 | |
| 73 | #[test] |
| 74 | fn deserialize_from_serialized() -> Result<()> { |
| 75 | let engine = super::engine(); |
| 76 | let buffer1 = Component::new(&engine, "(component (core module))")?.serialize()?; |
| 77 | let buffer2 = unsafe { Component::deserialize(&engine, &buffer1)?.serialize()? }; |
| 78 | assert!(buffer1 == buffer2); |
| 79 | Ok(()) |
| 80 | } |
| 81 | |
| 82 | // This specifically tests the current behavior that it's an error, but this can |
| 83 | // be made to work if necessary in the future. Currently the implementation of |
nothing calls this directly
no test coverage detected