type Thread … // AddUserToThread provides a mock function with given fields: user func (_m *Thread) AddUserToThread(user common.UserRecord) error { … } // AllActivity provides a mock function with given fields: window func (_m *Thread) AllActivity(window common.TimeWindow) int { … } // ChannelID provides a mock function with given fields: func (_m *Thread) ChannelID() string { … } // Close provides a mock function with given fields: func (_m *Thread) Close() { … } // CreateThread provides a mock function with given fields: title func (_m *Thread) CreateThread(title string) common.Thread { … } // EventCount provides a mock function with given fields: eventkey, window func (_m *Thread) EventCount(eventkey string, window common.TimeWindow) int { … } // IsVoiceChannel provides a mock function with given fields: func (_m *Thread) IsVoiceChannel() bool { … } // LastMessage provides a mock function with given fields: func (_m *Thread) LastMessage() common.Message { … } // LastMessages provides a mock function with given fields: count func (_m *Thread) LastMessages(count int) []common.Message { … } // Lock provides a mock function with given fields: func (_m *Thread) Lock() { … } // OnServer provides a mock function with given fields: func (_m *Thread) OnServer() common.ChatServer { … } // PostInChannel provides a mock function with given fields: message func (_m *Thread) PostInChannel(message string) common.Message { … } // PostInChannelWithAttachment provides a mock function with given fields: message, attachment func (_m *Thread) PostInChannelWithAttachment(message string, attachment common.MessageAttachment) common.Message { … } // PostInChannelWithEmbed provides a mock function with given fields: message, embed func (_m *Thread) PostInChannelWithEmbed(message string, embed common.MessageEmbed) common.Message { … } // PostInChannelWithEmbeds provides a mock function with given fields: message, embeds func (_m *Thread) PostInChannelWithEmbeds(message string, embeds []common.MessageEmbed) common.Message { … } // PostInChannelWithImage provides a mock function with given fields: message, attachment func (_m *Thread) PostInChannelWithImage(message string, attachment common.MessageImage) common.Message { … } // PostInChannelWithThumbnail provides a mock function with given fields: message, image func (_m *Thread) PostInChannelWithThumbnail(message string, image images.RemoteImage) common.Message { … } // Posts provides a mock function with given fields: func (_m *Thread) Posts() <-chan common.Message { … } // PruneAfter provides a mock function with given fields: msg, duration func (_m *Thread) PruneAfter(msg common.Message, duration time.Duration) { … } // PurgeEvent provides a mock function with given fields: event func (_m *Thread) PurgeEvent(event string) { … } // RemoveUserFromThread provides a mock function with given fields: user func (_m *Thread) RemoveUserFromThread(user common.UserRecord) { … } // TrackEvent provides a mock function with given fields: eventkey func (_m *Thread) TrackEvent(eventkey string) { … } // TrackMessage provides a mock function with given fields: m func (_m *Thread) TrackMessage(m common.Message) { … } // UsersInThread provides a mock function with given fields: func (_m *Thread) UsersInThread() []common.UserRecord { … } // NewThread creates a new instance of Thread. 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 NewThread(t interface { … }