batpak 0.8.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
14
15
16
// justifies: INV-TEST-PANIC-AS-ASSERTION; trybuild harness in tests/derive_multi_event_reactor_errors.rs uses panic! internally to surface fixture mismatches; test bodies follow panic-as-assertion idiom.
#![allow(clippy::panic)]
//! Compile-fail coverage for the `#[derive(MultiEventReactor)]` attribute contract.
//! Harness pattern: Fault-Injection Harness (compile-fail lane).
//!
//! Each fixture in `tests/ui/mer_*.rs` violates a specific contract rule and
//! must fail to compile with a span-pointed error. The `.stderr` files pin
//! the exact error wording so regressions in message clarity or span quality
//! surface as trybuild diffs.

#[test]
#[serial_test::file_serial(trybuild)]
fn compile_fail_multi_event_reactor_derive_errors() {
    let t = trybuild::TestCases::new();
    t.compile_fail("tests/ui/mer_on_unit_struct.rs");
}