type UserEvent … // Author provides a mock function with given fields: func (_m *UserEvent) Author() common.UserRecord { … } // AuthorID provides a mock function with given fields: func (_m *UserEvent) AuthorID() common.UserId { … } // FromBot provides a mock function with given fields: func (_m *UserEvent) FromBot() bool { … } // ID provides a mock function with given fields: func (_m *UserEvent) ID() string { … } // Log provides a mock function with given fields: content func (_m *UserEvent) Log(content string) { … } // LogErr provides a mock function with given fields: content, err func (_m *UserEvent) LogErr(content string, err error) { … } // Server provides a mock function with given fields: func (_m *UserEvent) Server() common.ChatServer { … } // ServerID provides a mock function with given fields: func (_m *UserEvent) ServerID() string { … } // Timestamp provides a mock function with given fields: func (_m *UserEvent) Timestamp() time.Time { … } // Type provides a mock function with given fields: func (_m *UserEvent) Type() common.MessageType { … } // NewUserEvent creates a new instance of UserEvent. 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 NewUserEvent(t interface { … }