MCPcopy Create free account
hub / github.com/flyteorg/flyte / WithClock

Function WithClock

flytestdlib/cache/in_memory_auto_refresh.go:58–62  ·  view source on GitHub ↗

WithClock configures the clock to use for time related operations. Mainly used for unit testing.

(clock clock.WithTicker)

Source from the content-addressed store, hash-verified

56
57// WithClock configures the clock to use for time related operations. Mainly used for unit testing.
58func WithClock(clock clock.WithTicker) Option {
59 return func(mo *Options) {
60 mo.clock = clock
61 }
62}
63
64// WithCreateBatchesFunc configures how cache items should be batched for refresh. Defaults to single item batching.
65func WithCreateBatchesFunc(createBatchesCb CreateBatchesFunc) Option {

Callers 5

defaultOptionsFunction · 0.85
TestCacheFourFunction · 0.85
TestQueueBuildUpFunction · 0.85
TestInProcessingFunction · 0.85

Calls

no outgoing calls

Tested by 4

TestCacheFourFunction · 0.68
TestQueueBuildUpFunction · 0.68
TestInProcessingFunction · 0.68