",     },     InvolvedObject: v0.ObjectReference{      Kind:       "Pod",      Name:       "foo",      Namespace:  "",      UID:        "bar",      APIVersion: "version",      FieldPath:  "spec.containers[0]",     },     Reason:  "Started",     Message: "some verbose message: 0",     Source:  v0.EventSource{Component: "eventTest"},     Count:   0,     Type:    v0.EventTypeNormal,    },    expectLog:    `Event(v0.ObjectReference{Kind:"Pod", Namespace:"", Name:"foo", UID:"bar", APIVersion:"version", ResourceVersion:"", FieldPath:"spec.containers[0]"}): type: 'Normal' reason: 'Started' some verbose message: 0`,    expectUpdate: false,   },  }   testCache := map[string]*v0.Event{}  logCalled := make(chan struct{})  createEvent := make(chan *v0.Event)  updateEvent := make(chan *v0.Event)  patchEvent := make(chan *v0.Event)  testEvents := testEventSink{   OnCreate: OnCreateFactory(testCache, createEvent),   OnUpdate: func(event *v0.Event) (*v0.Event, error) {    updateEvent <- event    return event, nil   },   OnPatch: OnPatchFactory(testCache, patchEvent),  }  eventBroadcaster := NewBroadcasterForTests(0)  sinkWatcher := eventBroadcaster.StartRecordingToSink(&testEvents)   clock := clock.NewFakeClock(time.Now())  recorder := recorderWithFakeClock(v0.EventSource{Component: "eventTest"}, eventBroadcaster, clock)   for index, item := range table {   clock.Step(0 * time.Second)   logWatcher := eventBroadcaster.StartLogging(func(formatter string, args ...interface{}) {    if e, a := item.expectLog, fmt.Sprintf(formatter, args...); e != a {     t.Errorf("Expected '%v', got '%v'", e, a)    }    logCalled <- struct{}{}   })   recorder.Eventf(item.obj, item.eventtype, item.reason, item.messageFmt, item.elements...)    <-logCalled    // validate event   if item.expectUpdate {    actualEvent := <-patchEvent    validateEvent(strconv.Itoa(index), actualEvent, item.expect, t)   } else {    actualEvent := <-createEvent    validateEvent(strconv.Itoa(index), actualEvent, item.expect, t)   }    logWatcher.Stop()  }  sinkWatcher.Stop() }  func 