{"modulePath":"github.com/nmintoh/dserver","version":"v5.11.1+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package plugintest\n\nThe plugintest package provides mocks that can be used to test plugins.\n\nThe mocks are created using testify's mock package: [https://godoc.org/github.com/stretchr/testify/mock](https://godoc.org/github.com/stretchr/testify/mock)\n\nIf you need to import the mock package, you can import it with \"github.com/mattermost/mattermost-server/plugin/plugintest/mock\".\n\n## Types\n\n```go\ntype API struct {\n\tmock.Mock\n}\n```\nAPI is an autogenerated mock type for the API type\n\n```go\nfunc (_m *API) AddChannelMember(channelId string, userId string) (*model.ChannelMember, *model.AppError)\n```\nAddChannelMember provides a mock function with given fields: channelId, userId\n\n```go\nfunc (_m *API) AddReaction(reaction *model.Reaction) (*model.Reaction, *model.AppError)\n```\nAddReaction provides a mock function with given fields: reaction\n\n```go\nfunc (_m *API) CopyFileInfos(userId string, fileIds []string) ([]string, *model.AppError)\n```\nCopyFileInfos provides a mock function with given fields: userId, fileIds\n\n```go\nfunc (_m *API) CreateBot(bot *model.Bot) (*model.Bot, *model.AppError)\n```\nCreateBot provides a mock function with given fields: bot\n\n```go\nfunc (_m *API) CreateChannel(channel *model.Channel) (*model.Channel, *model.AppError)\n```\nCreateChannel provides a mock function with given fields: channel\n\n```go\nfunc (_m *API) CreatePost(post *model.Post) (*model.Post, *model.AppError)\n```\nCreatePost provides a mock function with given fields: post\n\n```go\nfunc (_m *API) CreateTeam(team *model.Team) (*model.Team, *model.AppError)\n```\nCreateTeam provides a mock function with given fields: team\n\n```go\nfunc (_m *API) CreateTeamMember(teamId string, userId string) (*model.TeamMember, *model.AppError)\n```\nCreateTeamMember provides a mock function with given fields: teamId, userId\n\n```go\nfunc (_m *API) CreateTeamMembers(teamId string, userIds []string, requestorId string) ([]*model.TeamMember, *model.AppError)\n```\nCreateTeamMembers provides a mock function with given fields: teamId, userIds, requestorId\n\n```go\nfunc (_m *API) CreateUser(user *model.User) (*model.User, *model.AppError)\n```\nCreateUser provides a mock function with given fields: user\n\n```go\nfunc (_m *API) DeleteChannel(channelId string) *model.AppError\n```\nDeleteChannel provides a mock function with given fields: channelId\n\n```go\nfunc (_m *API) DeleteChannelMember(channelId string, userId string) *model.AppError\n```\nDeleteChannelMember provides a mock function with given fields: channelId, userId\n\n```go\nfunc (_m *API) DeleteEphemeralPost(userId string, post *model.Post)\n```\nDeleteEphemeralPost provides a mock function with given fields: userId, post\n\n```go\nfunc (_m *API) DeletePost(postId string) *model.AppError\n```\nDeletePost provides a mock function with given fields: postId\n\n```go\nfunc (_m *API) DeleteTeam(teamId string) *model.AppError\n```\nDeleteTeam provides a mock function with given fields: teamId\n\n```go\nfunc (_m *API) DeleteTeamMember(teamId string, userId string, requestorId string) *model.AppError\n```\nDeleteTeamMember provides a mock function with given fields: teamId, userId, requestorId\n\n```go\nfunc (_m *API) DeleteUser(userId string) *model.AppError\n```\nDeleteUser provides a mock function with given fields: userId\n\n```go\nfunc (_m *API) DisablePlugin(id string) *model.AppError\n```\nDisablePlugin provides a mock function with given fields: id\n\n```go\nfunc (_m *API) EnablePlugin(id string) *model.AppError\n```\nEnablePlugin provides a mock function with given fields: id\n\n```go\nfunc (_m *API) GetBot(botUserId string, includeDeleted bool) (*model.Bot, *model.AppError)\n```\nGetBot provides a mock function with given fields: botUserId, includeDeleted\n\n```go\nfunc (_m *API) GetBots(options *model.BotGetOptions) ([]*model.Bot, *model.AppError)\n```\nGetBots provides a mock function with given fields: options\n\n```go\nfunc (_m *API) GetBundlePath() (string, error)\n```\nGetBundlePath provides a mock function with given fields:\n\n```go\nfunc (_m *API) GetChannel(channelId string) (*model.Channel, *model.AppError)\n```\nGetChannel provides a mock function with given fields: channelId\n\n```go\nfunc (_m *API) GetChannelByName(teamId string, name string, includeDeleted bool) (*model.Channel, *model.AppError)\n```\nGetChannelByName provides a mock function with given fields: teamId, name, includeDeleted\n\n```go\nfunc (_m *API) GetChannelByNameForTeamName(teamName string, channelName string, includeDeleted bool) (*model.Channel, *model.AppError)\n```\nGetChannelByNameForTeamName provides a mock function with given fields: teamName, channelName, includeDeleted\n\n```go\nfunc (_m *API) GetChannelMember(channelId string, userId string) (*model.ChannelMember, *model.AppError)\n```\nGetChannelMember provides a mock function with given fields: channelId, userId\n\n```go\nfunc (_m *API) GetChannelMembers(channelId string, page int, perPage int) (*model.ChannelMembers, *model.AppError)\n```\nGetChannelMembers provides a mock function with given fields: channelId, page, perPage\n\n```go\nfunc (_m *API) GetChannelMembersByIds(channelId string, userIds []string) (*model.ChannelMembers, *model.AppError)\n```\nGetChannelMembersByIds provides a mock function with given fields: channelId, userIds\n\n```go\nfunc (_m *API) GetChannelMembersForUser(teamId string, userId string, page int, perPage int) ([]*model.ChannelMember, *model.AppError)\n```\nGetChannelMembersForUser provides a mock function with given fields: teamId, userId, page, perPage\n\n```go\nfunc (_m *API) GetChannelStats(channelId string) (*model.ChannelStats, *model.AppError)\n```\nGetChannelStats provides a mock function with given fields: channelId\n\n```go\nfunc (_m *API) GetChannelsForTeamForUser(teamId string, userId string, includeDeleted bool) ([]*model.Channel, *model.AppError)\n```\nGetChannelsForTeamForUser provides a mock function with given fields: teamId, userId, includeDeleted\n\n```go\nfunc (_m *API) GetConfig() *model.Config\n```\nGetConfig provides a mock function with given fields:\n\n```go\nfunc (_m *API) GetDiagnosticId() string\n```\nGetDiagnosticId provides a mock function with given fields:\n\n```go\nfunc (_m *API) GetDirectChannel(userId1 string, userId2 string) (*model.Channel, *model.AppError)\n```\nGetDirectChannel provides a mock function with given fields: userId1, userId2\n\n```go\nfunc (_m *API) GetEmoji(emojiId string) (*model.Emoji, *model.AppError)\n```\nGetEmoji provides a mock function with given fields: emojiId\n\n```go\nfunc (_m *API) GetEmojiByName(name string) (*model.Emoji, *model.AppError)\n```\nGetEmojiByName provides a mock function with given fields: name\n\n```go\nfunc (_m *API) GetEmojiImage(emojiId string) ([]byte, string, *model.AppError)\n```\nGetEmojiImage provides a mock function with given fields: emojiId\n\n```go\nfunc (_m *API) GetEmojiList(sortBy string, page int, perPage int) ([]*model.Emoji, *model.AppError)\n```\nGetEmojiList provides a mock function with given fields: sortBy, page, perPage\n\n```go\nfunc (_m *API) GetFile(fileId string) ([]byte, *model.AppError)\n```\nGetFile provides a mock function with given fields: fileId\n\n```go\nfunc (_m *API) GetFileInfo(fileId string) (*model.FileInfo, *model.AppError)\n```\nGetFileInfo provides a mock function with given fields: fileId\n\n```go\nfunc (_m *API) GetFileLink(fileId string) (string, *model.AppError)\n```\nGetFileLink provides a mock function with given fields: fileId\n\n```go\nfunc (_m *API) GetGroupChannel(userIds []string) (*model.Channel, *model.AppError)\n```\nGetGroupChannel provides a mock function with given fields: userIds\n\n```go\nfunc (_m *API) GetLDAPUserAttributes(userId string, attributes []string) (map[string]string, *model.AppError)\n```\nGetLDAPUserAttributes provides a mock function with given fields: userId, attributes\n\n```go\nfunc (_m *API) GetLicense() *model.License\n```\nGetLicense provides a mock function with given fields:\n\n```go\nfunc (_m *API) GetPluginConfig() map[string]interface{}\n```\nGetPluginConfig provides a mock function with given fields:\n\n```go\nfunc (_m *API) GetPluginStatus(id string) (*model.PluginStatus, *model.AppError)\n```\nGetPluginStatus provides a mock function with given fields: id\n\n```go\nfunc (_m *API) GetPlugins() ([]*model.Manifest, *model.AppError)\n```\nGetPlugins provides a mock function with given fields:\n\n```go\nfunc (_m *API) GetPost(postId string) (*model.Post, *model.AppError)\n```\nGetPost provides a mock function with given fields: postId\n\n```go\nfunc (_m *API) GetPostThread(postId string) (*model.PostList, *model.AppError)\n```\nGetPostThread provides a mock function with given fields: postId\n\n```go\nfunc (_m *API) GetPostsAfter(channelId string, postId string, page int, perPage int) (*model.PostList, *model.AppError)\n```\nGetPostsAfter provides a mock function with given fields: channelId, postId, page, perPage\n\n```go\nfunc (_m *API) GetPostsBefore(channelId string, postId string, page int, perPage int) (*model.PostList, *model.AppError)\n```\nGetPostsBefore provides a mock function with given fields: channelId, postId, page, perPage\n\n```go\nfunc (_m *API) GetPostsForChannel(channelId string, page int, perPage int) (*model.PostList, *model.AppError)\n```\nGetPostsForChannel provides a mock function with given fields: channelId, page, perPage\n\n```go\nfunc (_m *API) GetPostsSince(channelId string, time int64) (*model.PostList, *model.AppError)\n```\nGetPostsSince provides a mock function with given fields: channelId, time\n\n```go\nfunc (_m *API) GetProfileImage(userId string) ([]byte, *model.AppError)\n```\nGetProfileImage provides a mock function with given fields: userId\n\n```go\nfunc (_m *API) GetPublicChannelsForTeam(teamId string, page int, perPage int) ([]*model.Channel, *model.AppError)\n```\nGetPublicChannelsForTeam provides a mock function with given fields: teamId, page, perPage\n\n```go\nfunc (_m *API) GetReactions(postId string) ([]*model.Reaction, *model.AppError)\n```\nGetReactions provides a mock function with given fields: postId\n\n```go\nfunc (_m *API) GetServerVersion() string\n```\nGetServerVersion provides a mock function with given fields:\n\n```go\nfunc (_m *API) GetSession(sessionId string) (*model.Session, *model.AppError)\n```\nGetSession provides a mock function with given fields: sessionId\n\n```go\nfunc (_m *API) GetSystemInstallDate() (int64, *model.AppError)\n```\nGetSystemInstallDate provides a mock function with given fields:\n\n```go\nfunc (_m *API) GetTeam(teamId string) (*model.Team, *model.AppError)\n```\nGetTeam provides a mock function with given fields: teamId\n\n```go\nfunc (_m *API) GetTeamByName(name string) (*model.Team, *model.AppError)\n```\nGetTeamByName provides a mock function with given fields: name\n\n```go\nfunc (_m *API) GetTeamIcon(teamId string) ([]byte, *model.AppError)\n```\nGetTeamIcon provides a mock function with given fields: teamId\n\n```go\nfunc (_m *API) GetTeamMember(teamId string, userId string) (*model.TeamMember, *model.AppError)\n```\nGetTeamMember provides a mock function with given fields: teamId, userId\n\n```go\nfunc (_m *API) GetTeamMembers(teamId string, page int, perPage int) ([]*model.TeamMember, *model.AppError)\n```\nGetTeamMembers provides a mock function with given fields: teamId, page, perPage\n\n```go\nfunc (_m *API) GetTeamMembersForUser(userId string, page int, perPage int) ([]*model.TeamMember, *model.AppError)\n```\nGetTeamMembersForUser provides a mock function with given fields: userId, page, perPage\n\n```go\nfunc (_m *API) GetTeamStats(teamId string) (*model.TeamStats, *model.AppError)\n```\nGetTeamStats provides a mock function with given fields: teamId\n\n```go\nfunc (_m *API) GetTeams() ([]*model.Team, *model.AppError)\n```\nGetTeams provides a mock function with given fields:\n\n```go\nfunc (_m *API) GetTeamsForUser(userId string) ([]*model.Team, *model.AppError)\n```\nGetTeamsForUser provides a mock function with given fields: userId\n\n```go\nfunc (_m *API) GetTeamsUnreadForUser(userId string) ([]*model.TeamUnread, *model.AppError)\n```\nGetTeamsUnreadForUser provides a mock function with given fields: userId\n\n```go\nfunc (_m *API) GetUser(userId string) (*model.User, *model.AppError)\n```\nGetUser provides a mock function with given fields: userId\n\n```go\nfunc (_m *API) GetUserByEmail(email string) (*model.User, *model.AppError)\n```\nGetUserByEmail provides a mock function with given fields: email\n\n```go\nfunc (_m *API) GetUserByUsername(name string) (*model.User, *model.AppError)\n```\nGetUserByUsername provides a mock function with given fields: name\n\n```go\nfunc (_m *API) GetUserStatus(userId string) (*model.Status, *model.AppError)\n```\nGetUserStatus provides a mock function with given fields: userId\n\n```go\nfunc (_m *API) GetUserStatusesByIds(userIds []string) ([]*model.Status, *model.AppError)\n```\nGetUserStatusesByIds provides a mock function with given fields: userIds\n\n```go\nfunc (_m *API) GetUsers(options *model.UserGetOptions) ([]*model.User, *model.AppError)\n```\nGetUsers provides a mock function with given fields: options\n\n```go\nfunc (_m *API) GetUsersByUsernames(usernames []string) ([]*model.User, *model.AppError)\n```\nGetUsersByUsernames provides a mock function with given fields: usernames\n\n```go\nfunc (_m *API) GetUsersInChannel(channelId string, sortBy string, page int, perPage int) ([]*model.User, *model.AppError)\n```\nGetUsersInChannel provides a mock function with given fields: channelId, sortBy, page, perPage\n\n```go\nfunc (_m *API) GetUsersInTeam(teamId string, page int, perPage int) ([]*model.User, *model.AppError)\n```\nGetUsersInTeam provides a mock function with given fields: teamId, page, perPage\n\n```go\nfunc (_m *API) HasPermissionTo(userId string, permission *model.Permission) bool\n```\nHasPermissionTo provides a mock function with given fields: userId, permission\n\n```go\nfunc (_m *API) HasPermissionToChannel(userId string, channelId string, permission *model.Permission) bool\n```\nHasPermissionToChannel provides a mock function with given fields: userId, channelId, permission\n\n```go\nfunc (_m *API) HasPermissionToTeam(userId string, teamId string, permission *model.Permission) bool\n```\nHasPermissionToTeam provides a mock function with given fields: userId, teamId, permission\n\n```go\nfunc (_m *API) KVDelete(key string) *model.AppError\n```\nKVDelete provides a mock function with given fields: key\n\n```go\nfunc (_m *API) KVDeleteAll() *model.AppError\n```\nKVDeleteAll provides a mock function with given fields:\n\n```go\nfunc (_m *API) KVGet(key string) ([]byte, *model.AppError)\n```\nKVGet provides a mock function with given fields: key\n\n```go\nfunc (_m *API) KVList(page int, perPage int) ([]string, *model.AppError)\n```\nKVList provides a mock function with given fields: page, perPage\n\n```go\nfunc (_m *API) KVSet(key string, value []byte) *model.AppError\n```\nKVSet provides a mock function with given fields: key, value\n\n```go\nfunc (_m *API) KVSetWithExpiry(key string, value []byte, expireInSeconds int64) *model.AppError\n```\nKVSetWithExpiry provides a mock function with given fields: key, value, expireInSeconds\n\n```go\nfunc (_m *API) LoadPluginConfiguration(dest interface{}) error\n```\nLoadPluginConfiguration provides a mock function with given fields: dest\n\n```go\nfunc (_m *API) LogDebug(msg string, keyValuePairs ...interface{})\n```\nLogDebug provides a mock function with given fields: msg, keyValuePairs\n\n```go\nfunc (_m *API) LogError(msg string, keyValuePairs ...interface{})\n```\nLogError provides a mock function with given fields: msg, keyValuePairs\n\n```go\nfunc (_m *API) LogInfo(msg string, keyValuePairs ...interface{})\n```\nLogInfo provides a mock function with given fields: msg, keyValuePairs\n\n```go\nfunc (_m *API) LogWarn(msg string, keyValuePairs ...interface{})\n```\nLogWarn provides a mock function with given fields: msg, keyValuePairs\n\n```go\nfunc (_m *API) OpenInteractiveDialog(dialog model.OpenDialogRequest) *model.AppError\n```\nOpenInteractiveDialog provides a mock function with given fields: dialog\n\n```go\nfunc (_m *API) PatchBot(botUserId string, botPatch *model.BotPatch) (*model.Bot, *model.AppError)\n```\nPatchBot provides a mock function with given fields: botUserId, botPatch\n\n```go\nfunc (_m *API) PermanentDeleteBot(botUserId string) *model.AppError\n```\nPermanentDeleteBot provides a mock function with given fields: botUserId\n\n```go\nfunc (_m *API) PublishWebSocketEvent(event string, payload map[string]interface{}, broadcast *model.WebsocketBroadcast)\n```\nPublishWebSocketEvent provides a mock function with given fields: event, payload, broadcast\n\n```go\nfunc (_m *API) ReadFile(path string) ([]byte, *model.AppError)\n```\nReadFile provides a mock function with given fields: path\n\n```go\nfunc (_m *API) RegisterCommand(command *model.Command) error\n```\nRegisterCommand provides a mock function with given fields: command\n\n```go\nfunc (_m *API) RemovePlugin(id string) *model.AppError\n```\nRemovePlugin provides a mock function with given fields: id\n\n```go\nfunc (_m *API) RemoveReaction(reaction *model.Reaction) *model.AppError\n```\nRemoveReaction provides a mock function with given fields: reaction\n\n```go\nfunc (_m *API) RemoveTeamIcon(teamId string) *model.AppError\n```\nRemoveTeamIcon provides a mock function with given fields: teamId\n\n```go\nfunc (_m *API) SaveConfig(config *model.Config) *model.AppError\n```\nSaveConfig provides a mock function with given fields: config\n\n```go\nfunc (_m *API) SavePluginConfig(config map[string]interface{}) *model.AppError\n```\nSavePluginConfig provides a mock function with given fields: config\n\n```go\nfunc (_m *API) SearchChannels(teamId string, term string) ([]*model.Channel, *model.AppError)\n```\nSearchChannels provides a mock function with given fields: teamId, term\n\n```go\nfunc (_m *API) SearchPostsInTeam(teamId string, paramsList []*model.SearchParams) ([]*model.Post, *model.AppError)\n```\nSearchPostsInTeam provides a mock function with given fields: teamId, paramsList\n\n```go\nfunc (_m *API) SearchTeams(term string) ([]*model.Team, *model.AppError)\n```\nSearchTeams provides a mock function with given fields: term\n\n```go\nfunc (_m *API) SearchUsers(search *model.UserSearch) ([]*model.User, *model.AppError)\n```\nSearchUsers provides a mock function with given fields: search\n\n```go\nfunc (_m *API) SendEphemeralPost(userId string, post *model.Post) *model.Post\n```\nSendEphemeralPost provides a mock function with given fields: userId, post\n\n```go\nfunc (_m *API) SendMail(to string, subject string, htmlBody string) *model.AppError\n```\nSendMail provides a mock function with given fields: to, subject, htmlBody\n\n```go\nfunc (_m *API) SetProfileImage(userId string, data []byte) *model.AppError\n```\nSetProfileImage provides a mock function with given fields: userId, data\n\n```go\nfunc (_m *API) SetTeamIcon(teamId string, data []byte) *model.AppError\n```\nSetTeamIcon provides a mock function with given fields: teamId, data\n\n```go\nfunc (_m *API) UnregisterCommand(teamId string, trigger string) error\n```\nUnregisterCommand provides a mock function with given fields: teamId, trigger\n\n```go\nfunc (_m *API) UpdateBotActive(botUserId string, active bool) (*model.Bot, *model.AppError)\n```\nUpdateBotActive provides a mock function with given fields: botUserId, active\n\n```go\nfunc (_m *API) UpdateChannel(channel *model.Channel) (*model.Channel, *model.AppError)\n```\nUpdateChannel provides a mock function with given fields: channel\n\n```go\nfunc (_m *API) UpdateChannelMemberNotifications(channelId string, userId string, notifications map[string]string) (*model.ChannelMember, *model.AppError)\n```\nUpdateChannelMemberNotifications provides a mock function with given fields: channelId, userId, notifications\n\n```go\nfunc (_m *API) UpdateChannelMemberRoles(channelId string, userId string, newRoles string) (*model.ChannelMember, *model.AppError)\n```\nUpdateChannelMemberRoles provides a mock function with given fields: channelId, userId, newRoles\n\n```go\nfunc (_m *API) UpdateEphemeralPost(userId string, post *model.Post) *model.Post\n```\nUpdateEphemeralPost provides a mock function with given fields: userId, post\n\n```go\nfunc (_m *API) UpdatePost(post *model.Post) (*model.Post, *model.AppError)\n```\nUpdatePost provides a mock function with given fields: post\n\n```go\nfunc (_m *API) UpdateTeam(team *model.Team) (*model.Team, *model.AppError)\n```\nUpdateTeam provides a mock function with given fields: team\n\n```go\nfunc (_m *API) UpdateTeamMemberRoles(teamId string, userId string, newRoles string) (*model.TeamMember, *model.AppError)\n```\nUpdateTeamMemberRoles provides a mock function with given fields: teamId, userId, newRoles\n\n```go\nfunc (_m *API) UpdateUser(user *model.User) (*model.User, *model.AppError)\n```\nUpdateUser provides a mock function with given fields: user\n\n```go\nfunc (_m *API) UpdateUserActive(userId string, active bool) *model.AppError\n```\nUpdateUserActive provides a mock function with given fields: userId, active\n\n```go\nfunc (_m *API) UpdateUserStatus(userId string, status string) (*model.Status, *model.AppError)\n```\nUpdateUserStatus provides a mock function with given fields: userId, status\n\n```go\nfunc (_m *API) UploadFile(data []byte, channelId string, filename string) (*model.FileInfo, *model.AppError)\n```\nUploadFile provides a mock function with given fields: data, channelId, filename\n\n```go\ntype Hooks struct {\n\tmock.Mock\n}\n```\nHooks is an autogenerated mock type for the Hooks type\n\n```go\nfunc (_m *Hooks) ChannelHasBeenCreated(c *plugin.Context, channel *model.Channel)\n```\nChannelHasBeenCreated provides a mock function with given fields: c, channel\n\n```go\nfunc (_m *Hooks) ExecuteCommand(c *plugin.Context, args *model.CommandArgs) (*model.CommandResponse, *model.AppError)\n```\nExecuteCommand provides a mock function with given fields: c, args\n\n```go\nfunc (_m *Hooks) FileWillBeUploaded(c *plugin.Context, info *model.FileInfo, file io.Reader, output io.Writer) (*model.FileInfo, string)\n```\nFileWillBeUploaded provides a mock function with given fields: c, info, file, output\n\n```go\nfunc (_m *Hooks) Implemented() ([]string, error)\n```\nImplemented provides a mock function with given fields:\n\n```go\nfunc (_m *Hooks) MessageHasBeenPosted(c *plugin.Context, post *model.Post)\n```\nMessageHasBeenPosted provides a mock function with given fields: c, post\n\n```go\nfunc (_m *Hooks) MessageHasBeenUpdated(c *plugin.Context, newPost *model.Post, oldPost *model.Post)\n```\nMessageHasBeenUpdated provides a mock function with given fields: c, newPost, oldPost\n\n```go\nfunc (_m *Hooks) MessageWillBePosted(c *plugin.Context, post *model.Post) (*model.Post, string)\n```\nMessageWillBePosted provides a mock function with given fields: c, post\n\n```go\nfunc (_m *Hooks) MessageWillBeUpdated(c *plugin.Context, newPost *model.Post, oldPost *model.Post) (*model.Post, string)\n```\nMessageWillBeUpdated provides a mock function with given fields: c, newPost, oldPost\n\n```go\nfunc (_m *Hooks) OnActivate() error\n```\nOnActivate provides a mock function with given fields:\n\n```go\nfunc (_m *Hooks) OnConfigurationChange() error\n```\nOnConfigurationChange provides a mock function with given fields:\n\n```go\nfunc (_m *Hooks) OnDeactivate() error\n```\nOnDeactivate provides a mock function with given fields:\n\n```go\nfunc (_m *Hooks) ServeHTTP(c *plugin.Context, w http.ResponseWriter, r *http.Request)\n```\nServeHTTP provides a mock function with given fields: c, w, r\n\n```go\nfunc (_m *Hooks) UserHasBeenCreated(c *plugin.Context, user *model.User)\n```\nUserHasBeenCreated provides a mock function with given fields: c, user\n\n```go\nfunc (_m *Hooks) UserHasJoinedChannel(c *plugin.Context, channelMember *model.ChannelMember, actor *model.User)\n```\nUserHasJoinedChannel provides a mock function with given fields: c, channelMember, actor\n\n```go\nfunc (_m *Hooks) UserHasJoinedTeam(c *plugin.Context, teamMember *model.TeamMember, actor *model.User)\n```\nUserHasJoinedTeam provides a mock function with given fields: c, teamMember, actor\n\n```go\nfunc (_m *Hooks) UserHasLeftChannel(c *plugin.Context, channelMember *model.ChannelMember, actor *model.User)\n```\nUserHasLeftChannel provides a mock function with given fields: c, channelMember, actor\n\n```go\nfunc (_m *Hooks) UserHasLeftTeam(c *plugin.Context, teamMember *model.TeamMember, actor *model.User)\n```\nUserHasLeftTeam provides a mock function with given fields: c, teamMember, actor\n\n```go\nfunc (_m *Hooks) UserHasLoggedIn(c *plugin.Context, user *model.User)\n```\nUserHasLoggedIn provides a mock function with given fields: c, user\n\n```go\nfunc (_m *Hooks) UserWillLogIn(c *plugin.Context, user *model.User) string\n```\nUserWillLogIn provides a mock function with given fields: c, user\n\n","path":"github.com/nmintoh/dserver/plugin/plugintest","name":"plugintest","synopsis":"The plugintest package provides mocks that can be used to test plugins.","isRedistributable":true}
