Update records the event for testing.
(e *v1beta1.Event)
| 49 | |
| 50 | // Update records the event for testing. |
| 51 | func (t *testEventSeriesSink) Update(e *v1beta1.Event) (*v1beta1.Event, error) { |
| 52 | if t.OnUpdate != nil { |
| 53 | return t.OnUpdate(e) |
| 54 | } |
| 55 | return e, nil |
| 56 | } |
| 57 | |
| 58 | // Patch records the event for testing. |
| 59 | func (t *testEventSeriesSink) Patch(e *v1beta1.Event, p []byte) (*v1beta1.Event, error) { |