(testCache map[string]*v1.Event, createEvent chan<- *v1.Event)
| 69 | type OnCreateFunc func(*v1.Event) (*v1.Event, error) |
| 70 | |
| 71 | func OnCreateFactory(testCache map[string]*v1.Event, createEvent chan<- *v1.Event) OnCreateFunc { |
| 72 | return func(event *v1.Event) (*v1.Event, error) { |
| 73 | testCache[getEventKey(event)] = event |
| 74 | createEvent <- event |
| 75 | return event, nil |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | type OnPatchFunc func(*v1.Event, []byte) (*v1.Event, error) |
| 80 |
no test coverage detected