MCPcopy Create free account
hub / github.com/compozy/agh / WithManagerNow

Function WithManagerNow

internal/task/manager.go:215–219  ·  view source on GitHub ↗

WithManagerNow overrides the manager clock for deterministic tests.

(now func() time.Time)

Source from the content-addressed store, hash-verified

213
214// WithManagerNow overrides the manager clock for deterministic tests.
215func 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.
222func WithIDGenerator(newID func(prefix string) string) Option {

Calls

no outgoing calls