1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! Mock Runtime Module for WASM Callback Testing
//!
//! Per `PROBAR-SPEC-WASM-001`, this module provides a mock runtime for testing
//! WASM callback patterns without browser APIs.
//!
//! ## Iron Lotus Philosophy
//!
//! > "Test the code, not the model"
//!
//! Property tests on models do NOT catch bugs in actual code. This mock runtime
//! allows testing the ACTUAL code's callback behavior in a controlled environment.
//!
//! ## Example
//!
//! ```rust,ignore
//! use probar::mock::{MockWasmRuntime, MockMessage, WasmCallbackTestHarness};
//!
//! let harness = WasmCallbackTestHarness::<WorkerManager>::new();
//! harness.worker.spawn("model.apr").unwrap();
//! harness.assert_state("spawning");
//!
//! // Simulate worker ready message
//! harness.runtime.receive_message(MockMessage::Ready);
//! harness.runtime.tick();
//! harness.assert_state("loading"); // Would FAIL with state sync bug!
//! ```
pub use ;
pub use ;
pub use ;
pub use ;