Glossary: Software Design Patterns in C++
Injected clock
Also written: clock, Clock
A time function passed in as a dependency, a `std::function` that returns the time as text. Tests pass a fixed clock, and `main` passes the real `now_iso`.
Glossary: Software Design Patterns in C++
Also written: clock, Clock
A time function passed in as a dependency, a `std::function` that returns the time as text. Tests pass a fixed clock, and `main` passes the real `now_iso`.