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

Function WithNow

internal/resources/kernel.go:82–88  ·  view source on GitHub ↗

WithNow overrides the clock used by the kernel.

(now func() time.Time)

Source from the content-addressed store, hash-verified

80
81// WithNow overrides the clock used by the kernel.
82func WithNow(now func() time.Time) Option {
83 return func(k *Kernel) {
84 if now != nil {
85 k.now = now
86 }
87 }
88}
89
90// WithMaxSpecBytes overrides the per-record payload ceiling.
91func WithMaxSpecBytes(limit int) Option {

Callers 6

newHostAPITestEnvFunction · 0.92
openBenchmarkKernelFunction · 0.70
openTestKernelFunction · 0.70
openLowBusyTestKernelFunction · 0.70

Calls

no outgoing calls

Tested by 6

newHostAPITestEnvFunction · 0.74
openBenchmarkKernelFunction · 0.56
openTestKernelFunction · 0.56
openLowBusyTestKernelFunction · 0.56