batpak 0.9.0

Event sourcing with causal graphs and caller-defined gates. Sync API, no async runtime.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use super::ReactorError;

#[test]
fn display_renders_each_variant_text() {
    // Pins the Display impl: stubbing it to `Ok(Default::default())` would
    // emit an empty string for every variant and erase the diagnostic.
    let user: ReactorError<std::io::Error> =
        ReactorError::User(std::io::Error::other("handler blew up"));
    assert_eq!(user.to_string(), "reactor user error: handler blew up");

    let exhausted: ReactorError<std::io::Error> = ReactorError::RestartBudgetExhausted;
    assert_eq!(exhausted.to_string(), "reactor restart budget exhausted");
}