Skip to content

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.

Where the book teaches it

Related terms

Dependency injectionStubUnix time