WithManagerNow overrides the manager clock for deterministic tests.
(now func() time.Time)
| 213 | |
| 214 | // WithManagerNow overrides the manager clock for deterministic tests. |
| 215 | func WithManagerNow(now func() time.Time) Option { |
| 216 | return func(opts *managerOptions) { |
| 217 | opts.now = now |
| 218 | } |
| 219 | } |
| 220 | |
| 221 | // WithIDGenerator overrides identifier generation for deterministic tests. |
| 222 | func WithIDGenerator(newID func(prefix string) string) Option { |
no outgoing calls