#[cfg(test)]
mod tests {
use std::cell::RefCell;
use std::rc::{Rc, Weak};
use simple_statemachine::statemachine;
#[derive(PartialEq,Eq,Clone,Copy,Debug)]
pub struct MyEventPayload {
value: u32,
}
impl MyEventPayload {
fn new(value: u32)->Self{
Self{
value,
}
}
}
struct StatemachineHandler {
unexpected_handler_called: bool,
guard_value: bool,
guard_state: RefCell