fixedClock returns a clock func that always reports t. Used to make CreatedAt assertions deterministic without touching any global state, so these tests are safe to run in parallel.
(t time.Time)
| 11 | // CreatedAt assertions deterministic without touching any global state, so |
| 12 | // these tests are safe to run in parallel. |
| 13 | func fixedClock(t time.Time) func() time.Time { |
| 14 | return func() time.Time { return t } |
| 15 | } |
| 16 | |
| 17 | // stubIDs returns an ID generator that yields the supplied IDs in order and |
| 18 | // fails the test if exhausted. |
no outgoing calls
no test coverage detected