type EventTracking … // EventCount provides a mock function with given fields: eventkey, window func (_m *EventTracking) EventCount(eventkey string, window common.TimeWindow) int { … } // PurgeEvent provides a mock function with given fields: event func (_m *EventTracking) PurgeEvent(event string) { … } // TrackEvent provides a mock function with given fields: eventkey func (_m *EventTracking) TrackEvent(eventkey string) { … } // NewEventTracking creates a new instance of EventTracking. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. func NewEventTracking(t interface { … }