WithClock sets a controllable clock for testing. Defaults to quartz.NewReal().
(c quartz.Clock)
| 28 | // WithClock sets a controllable clock for testing. Defaults to |
| 29 | // quartz.NewReal(). |
| 30 | func WithClock(c quartz.Clock) Option { |
| 31 | return func(h *Handler) { |
| 32 | h.clock = c |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | // WithGitBinary overrides the git binary path (for testing). |
| 37 | func WithGitBinary(path string) Option { |
no outgoing calls