Skip to main content

Module mock

Module mock 

Source
Expand description

Test doubles for the crate::port traits: fixed/in-memory implementations useful in tests, or as a starting point for a real adapter.

Modulesยง

clock
A crate::port::clock::Clock that always returns a configured time.
id
An crate::port::id::IdGenerator that always returns a fixed id.
repository
A Load/Save/Delete implementation backed by an in-memory HashMap.