Your browser sucks, JavaScript disabled! Gunnar's console needs JavaScript and WebAssembly. Git over SSH on port 2222 does not.

nordisk/edda

crates/nornir-release-core/src/testkit.rs

//! Test-only support for the warehouse-SEAM release core — re-exported from the
//! ONE test double in the shared `nornir-release-ledger` edda leaf.
//!
//! This crate reasons over the engine-agnostic `nornir_warehouse_trait::Warehouse`
//! trait, never a concrete `IcebergWarehouse` (a warehouse-free core may not name
//! one), so the round-trip tests need a stand-in. That stand-in — [`MockWarehouse`],
//! a tiny in-memory `HashMap<table, Vec<RecordBatch>>` plus the std-only
//! single-future executor [`block_on`] — lives in the leaf alongside the ledger it
//! doubles for, so there is exactly one mock of the seam (a second hand-written mock
//! is how a seam re-forks).
//!
//! Available because the crate's `[dev-dependencies]` turn on the leaf's `testkit`
//! feature; the normal build never links it.
#![cfg(test)]

#[allow(unused_imports)]
pub use nornir_release_ledger::testkit::{block_on, MockWarehouse};