()
| 36 | // ── Harness ──────────────────────────────────────────────────────────────── |
| 37 | |
| 38 | fn open_core() -> ( |
| 39 | CoreLoop, |
| 40 | Producer<BridgeRequest>, |
| 41 | Consumer<BridgeResponse>, |
| 42 | tempfile::TempDir, |
| 43 | ) { |
| 44 | let dir = tempfile::tempdir().unwrap(); |
| 45 | let (req_tx, req_rx) = RingBuffer::channel::<BridgeRequest>(64); |
| 46 | let (resp_tx, resp_rx) = RingBuffer::channel::<BridgeResponse>(64); |
| 47 | let core = CoreLoop::open( |
| 48 | 0, |
| 49 | req_rx, |
| 50 | resp_tx, |
| 51 | dir.path(), |
| 52 | std::sync::Arc::new(nodedb_types::OrdinalClock::new()), |
| 53 | ) |
| 54 | .unwrap(); |
| 55 | (core, req_tx, resp_rx, dir) |
| 56 | } |
| 57 | |
| 58 | fn make_req(plan: PhysicalPlan) -> Request { |
| 59 | Request { |
no test coverage detected