Documentation
¶
Overview ¶
Package clock provides a time abstraction so business logic can be tested deterministically. Production code uses Real; tests use Fake.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Clock ¶
Clock returns the current time. All decay-and-reinforce logic accepts a Clock so tests can fast-forward without sleeping.
Click to show internal directories.
Click to hide internal directories.