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

Function makeTestEvent

tools/watch/retrywatcher_test.go:67–74  ·  view source on GitHub ↗
(rv int)

Source from the content-addressed store, hash-verified

65}
66
67func makeTestEvent(rv int) watch.Event {
68 return watch.Event{
69 Type: watch.Added,
70 Object: testObject{
71 resourceVersion: fmt.Sprintf("%d", rv),
72 },
73 }
74}
75
76func arrayToChannel(array []watch.Event) chan watch.Event {
77 ch := make(chan watch.Event, len(array))

Callers 2

TestRetryWatcherFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected