MCPcopy
hub / github.com/kubernetes/client-go / NewBroadcasterForTests

Function NewBroadcasterForTests

tools/record/event.go:140–145  ·  view source on GitHub ↗
(sleepDuration time.Duration)

Source from the content-addressed store, hash-verified

138}
139
140func NewBroadcasterForTests(sleepDuration time.Duration) EventBroadcaster {
141 return &eventBroadcasterImpl{
142 Broadcaster: watch.NewBroadcaster(maxQueuedEvents, watch.DropIfChannelFull),
143 sleepDuration: sleepDuration,
144 }
145}
146
147func NewBroadcasterWithCorrelatorOptions(options CorrelatorOptions) EventBroadcaster {
148 return &eventBroadcasterImpl{

Callers 4

TestEventfFunction · 0.85
TestLotsOfEventsFunction · 0.85
TestEventfNoNamespaceFunction · 0.85
TestMultiSinkCacheFunction · 0.85

Calls

no outgoing calls

Tested by 4

TestEventfFunction · 0.68
TestLotsOfEventsFunction · 0.68
TestEventfNoNamespaceFunction · 0.68
TestMultiSinkCacheFunction · 0.68