func makeObjectReference(kind, name, namespace string) v1.ObjectReference { … }
func makeEvent(reason, message string, involvedObject v1.ObjectReference) v1.Event { … }
func makeEvents(num int, template v1.Event) []v1.Event { … }
func makeUniqueEvents(num int) []v1.Event { … }
func makeSimilarEvents(num int, template v1.Event, messagePrefix string) []v1.Event { … }
func setCount(event v1.Event, count int) v1.Event { … }
func validateEvent(messagePrefix string, actualEvent *v1.Event, expectedEvent *v1.Event, t *testing.T) (*v1.Event, error) { … }
func TestEventAggregatorByReasonFunc(t *testing.T) { … }
func TestEventAggregatorByReasonMessageFunc(t *testing.T) { … }
func TestEventCorrelator(t *testing.T) { … }
func TestEventSpamFilter(t *testing.T) { … }