Glossary: Software Design Patterns in Rust
Injected clock
Also written: clock
A function passed in that returns the current unix time, so tests can supply a fixed time instead of the real one.
Glossary: Software Design Patterns in Rust
Also written: clock
A function passed in that returns the current unix time, so tests can supply a fixed time instead of the real one.