Test/host helper: raise a generic error (`VmErr::Raised(message)`) into host call `id`. */
(&mut self, id: u64, message: &str)
| 129 | |
| 130 | /* Test/host helper: raise a generic error (`VmErr::Raised(message)`) into host call `id`. */ |
| 131 | pub fn push_host_error_by_id(&mut self, id: u64, message: &str) -> bool { |
| 132 | self.inject_host_error_by_id(id, VmErr::Raised(message.into())) |
| 133 | } |
| 134 | |
| 135 | /* Push a string event onto the event queue; consumed by the next `receive()` call. Mirrors what `run_push_event` does for WASM hosts. */ |
| 136 | pub fn push_event(&mut self, message: &str) -> Result<(), VmErr> { |