ddd_toolkit_core/mock/mod.rs
1//! Test doubles for the [`crate::port`] traits: fixed/in-memory
2//! implementations useful in tests, or as a starting point for a real
3//! adapter.
4
5/// A [`crate::port::clock::Clock`] that always returns a configured time.
6#[cfg(feature = "chrono")]
7pub mod clock;
8/// An [`crate::port::id::IdGenerator`] that always returns a fixed id.
9pub mod id;
10/// A `Load`/`Save`/`Delete` implementation backed by an in-memory `HashMap`.
11pub mod repository;