From 2f66ad9077f11769a89b8a7230d72a7fe63c455d Mon Sep 17 00:00:00 2001 From: Michael Kochell <6913320+mickmister@users.noreply.github.com> Date: Tue, 26 Oct 2021 08:38:59 -0400 Subject: [PATCH] Specify version for mockgen package (#232) Co-authored-by: Ben Schumacher --- build/custom.mk | 2 +- server/jobs/mock_cluster/mock_cluster.go | 31 ++-- .../mock_mscalendar/mock_mscalendar.go | 157 +++++++++--------- .../mock_plugin_api/mock_plugin_api.go | 39 ++--- .../mscalendar/mock_welcomer/mock_welcomer.go | 27 +-- server/remote/mock_remote/mock_client.go | 101 +++++------ server/remote/mock_remote/mock_remote.go | 29 ++-- server/store/mock_store/mock_store.go | 143 ++++++++-------- server/utils/bot/mock_bot/mock_admin.go | 15 +- server/utils/bot/mock_bot/mock_logger.go | 35 ++-- server/utils/bot/mock_bot/mock_poster.go | 35 ++-- 11 files changed, 312 insertions(+), 302 deletions(-) diff --git a/build/custom.mk b/build/custom.mk index d8d7c9fc..7e90856b 100644 --- a/build/custom.mk +++ b/build/custom.mk @@ -18,7 +18,7 @@ GO_BUILD_FLAGS = -ldflags '$(LDFLAGS)' # Generates mock golang interfaces for testing mock: ifneq ($(HAS_SERVER),) - go install github.com/golang/mock/mockgen + go install github.com/golang/mock/mockgen@v1.6.0 mockgen -destination server/jobs/mock_cluster/mock_cluster.go github.com/mattermost/mattermost-plugin-api/cluster JobPluginAPI mockgen -destination server/mscalendar/mock_mscalendar/mock_mscalendar.go github.com/mattermost/mattermost-plugin-mscalendar/server/mscalendar MSCalendar mockgen -destination server/mscalendar/mock_welcomer/mock_welcomer.go -package mock_welcomer github.com/mattermost/mattermost-plugin-mscalendar/server/mscalendar Welcomer diff --git a/server/jobs/mock_cluster/mock_cluster.go b/server/jobs/mock_cluster/mock_cluster.go index fba01e5c..3f4ed44e 100644 --- a/server/jobs/mock_cluster/mock_cluster.go +++ b/server/jobs/mock_cluster/mock_cluster.go @@ -5,35 +5,36 @@ package mock_cluster import ( + reflect "reflect" + gomock "github.com/golang/mock/gomock" model "github.com/mattermost/mattermost-server/v5/model" - reflect "reflect" ) -// MockJobPluginAPI is a mock of JobPluginAPI interface +// MockJobPluginAPI is a mock of JobPluginAPI interface. type MockJobPluginAPI struct { ctrl *gomock.Controller recorder *MockJobPluginAPIMockRecorder } -// MockJobPluginAPIMockRecorder is the mock recorder for MockJobPluginAPI +// MockJobPluginAPIMockRecorder is the mock recorder for MockJobPluginAPI. type MockJobPluginAPIMockRecorder struct { mock *MockJobPluginAPI } -// NewMockJobPluginAPI creates a new mock instance +// NewMockJobPluginAPI creates a new mock instance. func NewMockJobPluginAPI(ctrl *gomock.Controller) *MockJobPluginAPI { mock := &MockJobPluginAPI{ctrl: ctrl} mock.recorder = &MockJobPluginAPIMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockJobPluginAPI) EXPECT() *MockJobPluginAPIMockRecorder { return m.recorder } -// KVDelete mocks base method +// KVDelete mocks base method. func (m *MockJobPluginAPI) KVDelete(arg0 string) *model.AppError { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "KVDelete", arg0) @@ -41,13 +42,13 @@ func (m *MockJobPluginAPI) KVDelete(arg0 string) *model.AppError { return ret0 } -// KVDelete indicates an expected call of KVDelete +// KVDelete indicates an expected call of KVDelete. func (mr *MockJobPluginAPIMockRecorder) KVDelete(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KVDelete", reflect.TypeOf((*MockJobPluginAPI)(nil).KVDelete), arg0) } -// KVGet mocks base method +// KVGet mocks base method. func (m *MockJobPluginAPI) KVGet(arg0 string) ([]byte, *model.AppError) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "KVGet", arg0) @@ -56,13 +57,13 @@ func (m *MockJobPluginAPI) KVGet(arg0 string) ([]byte, *model.AppError) { return ret0, ret1 } -// KVGet indicates an expected call of KVGet +// KVGet indicates an expected call of KVGet. func (mr *MockJobPluginAPIMockRecorder) KVGet(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KVGet", reflect.TypeOf((*MockJobPluginAPI)(nil).KVGet), arg0) } -// KVList mocks base method +// KVList mocks base method. func (m *MockJobPluginAPI) KVList(arg0, arg1 int) ([]string, *model.AppError) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "KVList", arg0, arg1) @@ -71,13 +72,13 @@ func (m *MockJobPluginAPI) KVList(arg0, arg1 int) ([]string, *model.AppError) { return ret0, ret1 } -// KVList indicates an expected call of KVList +// KVList indicates an expected call of KVList. func (mr *MockJobPluginAPIMockRecorder) KVList(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KVList", reflect.TypeOf((*MockJobPluginAPI)(nil).KVList), arg0, arg1) } -// KVSetWithOptions mocks base method +// KVSetWithOptions mocks base method. func (m *MockJobPluginAPI) KVSetWithOptions(arg0 string, arg1 []byte, arg2 model.PluginKVSetOptions) (bool, *model.AppError) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "KVSetWithOptions", arg0, arg1, arg2) @@ -86,13 +87,13 @@ func (m *MockJobPluginAPI) KVSetWithOptions(arg0 string, arg1 []byte, arg2 model return ret0, ret1 } -// KVSetWithOptions indicates an expected call of KVSetWithOptions +// KVSetWithOptions indicates an expected call of KVSetWithOptions. func (mr *MockJobPluginAPIMockRecorder) KVSetWithOptions(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KVSetWithOptions", reflect.TypeOf((*MockJobPluginAPI)(nil).KVSetWithOptions), arg0, arg1, arg2) } -// LogError mocks base method +// LogError mocks base method. func (m *MockJobPluginAPI) LogError(arg0 string, arg1 ...interface{}) { m.ctrl.T.Helper() varargs := []interface{}{arg0} @@ -102,7 +103,7 @@ func (m *MockJobPluginAPI) LogError(arg0 string, arg1 ...interface{}) { m.ctrl.Call(m, "LogError", varargs...) } -// LogError indicates an expected call of LogError +// LogError indicates an expected call of LogError. func (mr *MockJobPluginAPIMockRecorder) LogError(arg0 interface{}, arg1 ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{arg0}, arg1...) diff --git a/server/mscalendar/mock_mscalendar/mock_mscalendar.go b/server/mscalendar/mock_mscalendar/mock_mscalendar.go index f94b56f1..8d6bc66c 100644 --- a/server/mscalendar/mock_mscalendar/mock_mscalendar.go +++ b/server/mscalendar/mock_mscalendar/mock_mscalendar.go @@ -5,38 +5,39 @@ package mock_mscalendar import ( + reflect "reflect" + time "time" + gomock "github.com/golang/mock/gomock" mscalendar "github.com/mattermost/mattermost-plugin-mscalendar/server/mscalendar" remote "github.com/mattermost/mattermost-plugin-mscalendar/server/remote" store "github.com/mattermost/mattermost-plugin-mscalendar/server/store" - reflect "reflect" - time "time" ) -// MockMSCalendar is a mock of MSCalendar interface +// MockMSCalendar is a mock of MSCalendar interface. type MockMSCalendar struct { ctrl *gomock.Controller recorder *MockMSCalendarMockRecorder } -// MockMSCalendarMockRecorder is the mock recorder for MockMSCalendar +// MockMSCalendarMockRecorder is the mock recorder for MockMSCalendar. type MockMSCalendarMockRecorder struct { mock *MockMSCalendar } -// NewMockMSCalendar creates a new mock instance +// NewMockMSCalendar creates a new mock instance. func NewMockMSCalendar(ctrl *gomock.Controller) *MockMSCalendar { mock := &MockMSCalendar{ctrl: ctrl} mock.recorder = &MockMSCalendarMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockMSCalendar) EXPECT() *MockMSCalendarMockRecorder { return m.recorder } -// AcceptEvent mocks base method +// AcceptEvent mocks base method. func (m *MockMSCalendar) AcceptEvent(arg0 *mscalendar.User, arg1 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AcceptEvent", arg0, arg1) @@ -44,13 +45,13 @@ func (m *MockMSCalendar) AcceptEvent(arg0 *mscalendar.User, arg1 string) error { return ret0 } -// AcceptEvent indicates an expected call of AcceptEvent +// AcceptEvent indicates an expected call of AcceptEvent. func (mr *MockMSCalendarMockRecorder) AcceptEvent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AcceptEvent", reflect.TypeOf((*MockMSCalendar)(nil).AcceptEvent), arg0, arg1) } -// AfterDisconnect mocks base method +// AfterDisconnect mocks base method. func (m *MockMSCalendar) AfterDisconnect(arg0 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AfterDisconnect", arg0) @@ -58,13 +59,13 @@ func (m *MockMSCalendar) AfterDisconnect(arg0 string) error { return ret0 } -// AfterDisconnect indicates an expected call of AfterDisconnect +// AfterDisconnect indicates an expected call of AfterDisconnect. func (mr *MockMSCalendarMockRecorder) AfterDisconnect(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AfterDisconnect", reflect.TypeOf((*MockMSCalendar)(nil).AfterDisconnect), arg0) } -// AfterSuccessfullyConnect mocks base method +// AfterSuccessfullyConnect mocks base method. func (m *MockMSCalendar) AfterSuccessfullyConnect(arg0, arg1 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AfterSuccessfullyConnect", arg0, arg1) @@ -72,25 +73,25 @@ func (m *MockMSCalendar) AfterSuccessfullyConnect(arg0, arg1 string) error { return ret0 } -// AfterSuccessfullyConnect indicates an expected call of AfterSuccessfullyConnect +// AfterSuccessfullyConnect indicates an expected call of AfterSuccessfullyConnect. func (mr *MockMSCalendarMockRecorder) AfterSuccessfullyConnect(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AfterSuccessfullyConnect", reflect.TypeOf((*MockMSCalendar)(nil).AfterSuccessfullyConnect), arg0, arg1) } -// ClearSettingsPosts mocks base method +// ClearSettingsPosts mocks base method. func (m *MockMSCalendar) ClearSettingsPosts(arg0 string) { m.ctrl.T.Helper() m.ctrl.Call(m, "ClearSettingsPosts", arg0) } -// ClearSettingsPosts indicates an expected call of ClearSettingsPosts +// ClearSettingsPosts indicates an expected call of ClearSettingsPosts. func (mr *MockMSCalendarMockRecorder) ClearSettingsPosts(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClearSettingsPosts", reflect.TypeOf((*MockMSCalendar)(nil).ClearSettingsPosts), arg0) } -// CreateCalendar mocks base method +// CreateCalendar mocks base method. func (m *MockMSCalendar) CreateCalendar(arg0 *mscalendar.User, arg1 *remote.Calendar) (*remote.Calendar, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateCalendar", arg0, arg1) @@ -99,13 +100,13 @@ func (m *MockMSCalendar) CreateCalendar(arg0 *mscalendar.User, arg1 *remote.Cale return ret0, ret1 } -// CreateCalendar indicates an expected call of CreateCalendar +// CreateCalendar indicates an expected call of CreateCalendar. func (mr *MockMSCalendarMockRecorder) CreateCalendar(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCalendar", reflect.TypeOf((*MockMSCalendar)(nil).CreateCalendar), arg0, arg1) } -// CreateEvent mocks base method +// CreateEvent mocks base method. func (m *MockMSCalendar) CreateEvent(arg0 *mscalendar.User, arg1 *remote.Event, arg2 []string) (*remote.Event, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateEvent", arg0, arg1, arg2) @@ -114,13 +115,13 @@ func (m *MockMSCalendar) CreateEvent(arg0 *mscalendar.User, arg1 *remote.Event, return ret0, ret1 } -// CreateEvent indicates an expected call of CreateEvent +// CreateEvent indicates an expected call of CreateEvent. func (mr *MockMSCalendarMockRecorder) CreateEvent(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateEvent", reflect.TypeOf((*MockMSCalendar)(nil).CreateEvent), arg0, arg1, arg2) } -// CreateMyEventSubscription mocks base method +// CreateMyEventSubscription mocks base method. func (m *MockMSCalendar) CreateMyEventSubscription() (*store.Subscription, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateMyEventSubscription") @@ -129,13 +130,13 @@ func (m *MockMSCalendar) CreateMyEventSubscription() (*store.Subscription, error return ret0, ret1 } -// CreateMyEventSubscription indicates an expected call of CreateMyEventSubscription +// CreateMyEventSubscription indicates an expected call of CreateMyEventSubscription. func (mr *MockMSCalendarMockRecorder) CreateMyEventSubscription() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateMyEventSubscription", reflect.TypeOf((*MockMSCalendar)(nil).CreateMyEventSubscription)) } -// DeclineEvent mocks base method +// DeclineEvent mocks base method. func (m *MockMSCalendar) DeclineEvent(arg0 *mscalendar.User, arg1 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeclineEvent", arg0, arg1) @@ -143,13 +144,13 @@ func (m *MockMSCalendar) DeclineEvent(arg0 *mscalendar.User, arg1 string) error return ret0 } -// DeclineEvent indicates an expected call of DeclineEvent +// DeclineEvent indicates an expected call of DeclineEvent. func (mr *MockMSCalendarMockRecorder) DeclineEvent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeclineEvent", reflect.TypeOf((*MockMSCalendar)(nil).DeclineEvent), arg0, arg1) } -// DeleteCalendar mocks base method +// DeleteCalendar mocks base method. func (m *MockMSCalendar) DeleteCalendar(arg0 *mscalendar.User, arg1 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteCalendar", arg0, arg1) @@ -157,13 +158,13 @@ func (m *MockMSCalendar) DeleteCalendar(arg0 *mscalendar.User, arg1 string) erro return ret0 } -// DeleteCalendar indicates an expected call of DeleteCalendar +// DeleteCalendar indicates an expected call of DeleteCalendar. func (mr *MockMSCalendarMockRecorder) DeleteCalendar(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCalendar", reflect.TypeOf((*MockMSCalendar)(nil).DeleteCalendar), arg0, arg1) } -// DeleteMyEventSubscription mocks base method +// DeleteMyEventSubscription mocks base method. func (m *MockMSCalendar) DeleteMyEventSubscription() error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteMyEventSubscription") @@ -171,13 +172,13 @@ func (m *MockMSCalendar) DeleteMyEventSubscription() error { return ret0 } -// DeleteMyEventSubscription indicates an expected call of DeleteMyEventSubscription +// DeleteMyEventSubscription indicates an expected call of DeleteMyEventSubscription. func (mr *MockMSCalendarMockRecorder) DeleteMyEventSubscription() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMyEventSubscription", reflect.TypeOf((*MockMSCalendar)(nil).DeleteMyEventSubscription)) } -// DeleteOrphanedSubscription mocks base method +// DeleteOrphanedSubscription mocks base method. func (m *MockMSCalendar) DeleteOrphanedSubscription(arg0 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteOrphanedSubscription", arg0) @@ -185,13 +186,13 @@ func (m *MockMSCalendar) DeleteOrphanedSubscription(arg0 string) error { return ret0 } -// DeleteOrphanedSubscription indicates an expected call of DeleteOrphanedSubscription +// DeleteOrphanedSubscription indicates an expected call of DeleteOrphanedSubscription. func (mr *MockMSCalendarMockRecorder) DeleteOrphanedSubscription(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOrphanedSubscription", reflect.TypeOf((*MockMSCalendar)(nil).DeleteOrphanedSubscription), arg0) } -// DisconnectUser mocks base method +// DisconnectUser mocks base method. func (m *MockMSCalendar) DisconnectUser(arg0 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DisconnectUser", arg0) @@ -199,13 +200,13 @@ func (m *MockMSCalendar) DisconnectUser(arg0 string) error { return ret0 } -// DisconnectUser indicates an expected call of DisconnectUser +// DisconnectUser indicates an expected call of DisconnectUser. func (mr *MockMSCalendarMockRecorder) DisconnectUser(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisconnectUser", reflect.TypeOf((*MockMSCalendar)(nil).DisconnectUser), arg0) } -// FindMeetingTimes mocks base method +// FindMeetingTimes mocks base method. func (m *MockMSCalendar) FindMeetingTimes(arg0 *mscalendar.User, arg1 *remote.FindMeetingTimesParameters) (*remote.MeetingTimeSuggestionResults, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "FindMeetingTimes", arg0, arg1) @@ -214,13 +215,13 @@ func (m *MockMSCalendar) FindMeetingTimes(arg0 *mscalendar.User, arg1 *remote.Fi return ret0, ret1 } -// FindMeetingTimes indicates an expected call of FindMeetingTimes +// FindMeetingTimes indicates an expected call of FindMeetingTimes. func (mr *MockMSCalendarMockRecorder) FindMeetingTimes(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindMeetingTimes", reflect.TypeOf((*MockMSCalendar)(nil).FindMeetingTimes), arg0, arg1) } -// GetActingUser mocks base method +// GetActingUser mocks base method. func (m *MockMSCalendar) GetActingUser() *mscalendar.User { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetActingUser") @@ -228,13 +229,13 @@ func (m *MockMSCalendar) GetActingUser() *mscalendar.User { return ret0 } -// GetActingUser indicates an expected call of GetActingUser +// GetActingUser indicates an expected call of GetActingUser. func (mr *MockMSCalendarMockRecorder) GetActingUser() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetActingUser", reflect.TypeOf((*MockMSCalendar)(nil).GetActingUser)) } -// GetCalendarViews mocks base method +// GetCalendarViews mocks base method. func (m *MockMSCalendar) GetCalendarViews(arg0 []*store.User) ([]*remote.ViewCalendarResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetCalendarViews", arg0) @@ -243,13 +244,13 @@ func (m *MockMSCalendar) GetCalendarViews(arg0 []*store.User) ([]*remote.ViewCal return ret0, ret1 } -// GetCalendarViews indicates an expected call of GetCalendarViews +// GetCalendarViews indicates an expected call of GetCalendarViews. func (mr *MockMSCalendarMockRecorder) GetCalendarViews(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCalendarViews", reflect.TypeOf((*MockMSCalendar)(nil).GetCalendarViews), arg0) } -// GetCalendars mocks base method +// GetCalendars mocks base method. func (m *MockMSCalendar) GetCalendars(arg0 *mscalendar.User) ([]*remote.Calendar, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetCalendars", arg0) @@ -258,13 +259,13 @@ func (m *MockMSCalendar) GetCalendars(arg0 *mscalendar.User) ([]*remote.Calendar return ret0, ret1 } -// GetCalendars indicates an expected call of GetCalendars +// GetCalendars indicates an expected call of GetCalendars. func (mr *MockMSCalendarMockRecorder) GetCalendars(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCalendars", reflect.TypeOf((*MockMSCalendar)(nil).GetCalendars), arg0) } -// GetDailySummaryForUser mocks base method +// GetDailySummaryForUser mocks base method. func (m *MockMSCalendar) GetDailySummaryForUser(arg0 *mscalendar.User) (string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetDailySummaryForUser", arg0) @@ -273,13 +274,13 @@ func (m *MockMSCalendar) GetDailySummaryForUser(arg0 *mscalendar.User) (string, return ret0, ret1 } -// GetDailySummaryForUser indicates an expected call of GetDailySummaryForUser +// GetDailySummaryForUser indicates an expected call of GetDailySummaryForUser. func (mr *MockMSCalendarMockRecorder) GetDailySummaryForUser(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDailySummaryForUser", reflect.TypeOf((*MockMSCalendar)(nil).GetDailySummaryForUser), arg0) } -// GetDailySummarySettingsForUser mocks base method +// GetDailySummarySettingsForUser mocks base method. func (m *MockMSCalendar) GetDailySummarySettingsForUser(arg0 *mscalendar.User) (*store.DailySummaryUserSettings, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetDailySummarySettingsForUser", arg0) @@ -288,13 +289,13 @@ func (m *MockMSCalendar) GetDailySummarySettingsForUser(arg0 *mscalendar.User) ( return ret0, ret1 } -// GetDailySummarySettingsForUser indicates an expected call of GetDailySummarySettingsForUser +// GetDailySummarySettingsForUser indicates an expected call of GetDailySummarySettingsForUser. func (mr *MockMSCalendarMockRecorder) GetDailySummarySettingsForUser(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDailySummarySettingsForUser", reflect.TypeOf((*MockMSCalendar)(nil).GetDailySummarySettingsForUser), arg0) } -// GetRemoteUser mocks base method +// GetRemoteUser mocks base method. func (m *MockMSCalendar) GetRemoteUser(arg0 string) (*remote.User, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetRemoteUser", arg0) @@ -303,13 +304,13 @@ func (m *MockMSCalendar) GetRemoteUser(arg0 string) (*remote.User, error) { return ret0, ret1 } -// GetRemoteUser indicates an expected call of GetRemoteUser +// GetRemoteUser indicates an expected call of GetRemoteUser. func (mr *MockMSCalendarMockRecorder) GetRemoteUser(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRemoteUser", reflect.TypeOf((*MockMSCalendar)(nil).GetRemoteUser), arg0) } -// GetTimezone mocks base method +// GetTimezone mocks base method. func (m *MockMSCalendar) GetTimezone(arg0 *mscalendar.User) (string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetTimezone", arg0) @@ -318,13 +319,13 @@ func (m *MockMSCalendar) GetTimezone(arg0 *mscalendar.User) (string, error) { return ret0, ret1 } -// GetTimezone indicates an expected call of GetTimezone +// GetTimezone indicates an expected call of GetTimezone. func (mr *MockMSCalendarMockRecorder) GetTimezone(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTimezone", reflect.TypeOf((*MockMSCalendar)(nil).GetTimezone), arg0) } -// GetUserSettings mocks base method +// GetUserSettings mocks base method. func (m *MockMSCalendar) GetUserSettings(arg0 *mscalendar.User) (*store.Settings, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetUserSettings", arg0) @@ -333,13 +334,13 @@ func (m *MockMSCalendar) GetUserSettings(arg0 *mscalendar.User) (*store.Settings return ret0, ret1 } -// GetUserSettings indicates an expected call of GetUserSettings +// GetUserSettings indicates an expected call of GetUserSettings. func (mr *MockMSCalendarMockRecorder) GetUserSettings(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserSettings", reflect.TypeOf((*MockMSCalendar)(nil).GetUserSettings), arg0) } -// IsAuthorizedAdmin mocks base method +// IsAuthorizedAdmin mocks base method. func (m *MockMSCalendar) IsAuthorizedAdmin(arg0 string) (bool, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "IsAuthorizedAdmin", arg0) @@ -348,13 +349,13 @@ func (m *MockMSCalendar) IsAuthorizedAdmin(arg0 string) (bool, error) { return ret0, ret1 } -// IsAuthorizedAdmin indicates an expected call of IsAuthorizedAdmin +// IsAuthorizedAdmin indicates an expected call of IsAuthorizedAdmin. func (mr *MockMSCalendarMockRecorder) IsAuthorizedAdmin(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsAuthorizedAdmin", reflect.TypeOf((*MockMSCalendar)(nil).IsAuthorizedAdmin), arg0) } -// ListRemoteSubscriptions mocks base method +// ListRemoteSubscriptions mocks base method. func (m *MockMSCalendar) ListRemoteSubscriptions() ([]*remote.Subscription, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ListRemoteSubscriptions") @@ -363,13 +364,13 @@ func (m *MockMSCalendar) ListRemoteSubscriptions() ([]*remote.Subscription, erro return ret0, ret1 } -// ListRemoteSubscriptions indicates an expected call of ListRemoteSubscriptions +// ListRemoteSubscriptions indicates an expected call of ListRemoteSubscriptions. func (mr *MockMSCalendarMockRecorder) ListRemoteSubscriptions() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRemoteSubscriptions", reflect.TypeOf((*MockMSCalendar)(nil).ListRemoteSubscriptions)) } -// LoadMyEventSubscription mocks base method +// LoadMyEventSubscription mocks base method. func (m *MockMSCalendar) LoadMyEventSubscription() (*store.Subscription, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "LoadMyEventSubscription") @@ -378,25 +379,25 @@ func (m *MockMSCalendar) LoadMyEventSubscription() (*store.Subscription, error) return ret0, ret1 } -// LoadMyEventSubscription indicates an expected call of LoadMyEventSubscription +// LoadMyEventSubscription indicates an expected call of LoadMyEventSubscription. func (mr *MockMSCalendarMockRecorder) LoadMyEventSubscription() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadMyEventSubscription", reflect.TypeOf((*MockMSCalendar)(nil).LoadMyEventSubscription)) } -// PrintSettings mocks base method +// PrintSettings mocks base method. func (m *MockMSCalendar) PrintSettings(arg0 string) { m.ctrl.T.Helper() m.ctrl.Call(m, "PrintSettings", arg0) } -// PrintSettings indicates an expected call of PrintSettings +// PrintSettings indicates an expected call of PrintSettings. func (mr *MockMSCalendarMockRecorder) PrintSettings(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrintSettings", reflect.TypeOf((*MockMSCalendar)(nil).PrintSettings), arg0) } -// ProcessAllDailySummary mocks base method +// ProcessAllDailySummary mocks base method. func (m *MockMSCalendar) ProcessAllDailySummary(arg0 time.Time) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ProcessAllDailySummary", arg0) @@ -404,13 +405,13 @@ func (m *MockMSCalendar) ProcessAllDailySummary(arg0 time.Time) error { return ret0 } -// ProcessAllDailySummary indicates an expected call of ProcessAllDailySummary +// ProcessAllDailySummary indicates an expected call of ProcessAllDailySummary. func (mr *MockMSCalendarMockRecorder) ProcessAllDailySummary(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProcessAllDailySummary", reflect.TypeOf((*MockMSCalendar)(nil).ProcessAllDailySummary), arg0) } -// RenewMyEventSubscription mocks base method +// RenewMyEventSubscription mocks base method. func (m *MockMSCalendar) RenewMyEventSubscription() (*store.Subscription, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "RenewMyEventSubscription") @@ -419,13 +420,13 @@ func (m *MockMSCalendar) RenewMyEventSubscription() (*store.Subscription, error) return ret0, ret1 } -// RenewMyEventSubscription indicates an expected call of RenewMyEventSubscription +// RenewMyEventSubscription indicates an expected call of RenewMyEventSubscription. func (mr *MockMSCalendarMockRecorder) RenewMyEventSubscription() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RenewMyEventSubscription", reflect.TypeOf((*MockMSCalendar)(nil).RenewMyEventSubscription)) } -// RespondToEvent mocks base method +// RespondToEvent mocks base method. func (m *MockMSCalendar) RespondToEvent(arg0 *mscalendar.User, arg1, arg2 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "RespondToEvent", arg0, arg1, arg2) @@ -433,13 +434,13 @@ func (m *MockMSCalendar) RespondToEvent(arg0 *mscalendar.User, arg1, arg2 string return ret0 } -// RespondToEvent indicates an expected call of RespondToEvent +// RespondToEvent indicates an expected call of RespondToEvent. func (mr *MockMSCalendarMockRecorder) RespondToEvent(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RespondToEvent", reflect.TypeOf((*MockMSCalendar)(nil).RespondToEvent), arg0, arg1, arg2) } -// SetDailySummaryEnabled mocks base method +// SetDailySummaryEnabled mocks base method. func (m *MockMSCalendar) SetDailySummaryEnabled(arg0 *mscalendar.User, arg1 bool) (*store.DailySummaryUserSettings, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SetDailySummaryEnabled", arg0, arg1) @@ -448,13 +449,13 @@ func (m *MockMSCalendar) SetDailySummaryEnabled(arg0 *mscalendar.User, arg1 bool return ret0, ret1 } -// SetDailySummaryEnabled indicates an expected call of SetDailySummaryEnabled +// SetDailySummaryEnabled indicates an expected call of SetDailySummaryEnabled. func (mr *MockMSCalendarMockRecorder) SetDailySummaryEnabled(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDailySummaryEnabled", reflect.TypeOf((*MockMSCalendar)(nil).SetDailySummaryEnabled), arg0, arg1) } -// SetDailySummaryPostTime mocks base method +// SetDailySummaryPostTime mocks base method. func (m *MockMSCalendar) SetDailySummaryPostTime(arg0 *mscalendar.User, arg1 string) (*store.DailySummaryUserSettings, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SetDailySummaryPostTime", arg0, arg1) @@ -463,13 +464,13 @@ func (m *MockMSCalendar) SetDailySummaryPostTime(arg0 *mscalendar.User, arg1 str return ret0, ret1 } -// SetDailySummaryPostTime indicates an expected call of SetDailySummaryPostTime +// SetDailySummaryPostTime indicates an expected call of SetDailySummaryPostTime. func (mr *MockMSCalendarMockRecorder) SetDailySummaryPostTime(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDailySummaryPostTime", reflect.TypeOf((*MockMSCalendar)(nil).SetDailySummaryPostTime), arg0, arg1) } -// Sync mocks base method +// Sync mocks base method. func (m *MockMSCalendar) Sync(arg0 string) (string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Sync", arg0) @@ -478,13 +479,13 @@ func (m *MockMSCalendar) Sync(arg0 string) (string, error) { return ret0, ret1 } -// Sync indicates an expected call of Sync +// Sync indicates an expected call of Sync. func (mr *MockMSCalendarMockRecorder) Sync(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Sync", reflect.TypeOf((*MockMSCalendar)(nil).Sync), arg0) } -// SyncAll mocks base method +// SyncAll mocks base method. func (m *MockMSCalendar) SyncAll() (string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SyncAll") @@ -493,13 +494,13 @@ func (m *MockMSCalendar) SyncAll() (string, error) { return ret0, ret1 } -// SyncAll indicates an expected call of SyncAll +// SyncAll indicates an expected call of SyncAll. func (mr *MockMSCalendarMockRecorder) SyncAll() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SyncAll", reflect.TypeOf((*MockMSCalendar)(nil).SyncAll)) } -// TentativelyAcceptEvent mocks base method +// TentativelyAcceptEvent mocks base method. func (m *MockMSCalendar) TentativelyAcceptEvent(arg0 *mscalendar.User, arg1 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "TentativelyAcceptEvent", arg0, arg1) @@ -507,13 +508,13 @@ func (m *MockMSCalendar) TentativelyAcceptEvent(arg0 *mscalendar.User, arg1 stri return ret0 } -// TentativelyAcceptEvent indicates an expected call of TentativelyAcceptEvent +// TentativelyAcceptEvent indicates an expected call of TentativelyAcceptEvent. func (mr *MockMSCalendarMockRecorder) TentativelyAcceptEvent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TentativelyAcceptEvent", reflect.TypeOf((*MockMSCalendar)(nil).TentativelyAcceptEvent), arg0, arg1) } -// ViewCalendar mocks base method +// ViewCalendar mocks base method. func (m *MockMSCalendar) ViewCalendar(arg0 *mscalendar.User, arg1, arg2 time.Time) ([]*remote.Event, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ViewCalendar", arg0, arg1, arg2) @@ -522,13 +523,13 @@ func (m *MockMSCalendar) ViewCalendar(arg0 *mscalendar.User, arg1, arg2 time.Tim return ret0, ret1 } -// ViewCalendar indicates an expected call of ViewCalendar +// ViewCalendar indicates an expected call of ViewCalendar. func (mr *MockMSCalendarMockRecorder) ViewCalendar(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ViewCalendar", reflect.TypeOf((*MockMSCalendar)(nil).ViewCalendar), arg0, arg1, arg2) } -// Welcome mocks base method +// Welcome mocks base method. func (m *MockMSCalendar) Welcome(arg0 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Welcome", arg0) @@ -536,19 +537,19 @@ func (m *MockMSCalendar) Welcome(arg0 string) error { return ret0 } -// Welcome indicates an expected call of Welcome +// Welcome indicates an expected call of Welcome. func (mr *MockMSCalendarMockRecorder) Welcome(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Welcome", reflect.TypeOf((*MockMSCalendar)(nil).Welcome), arg0) } -// WelcomeFlowEnd mocks base method +// WelcomeFlowEnd mocks base method. func (m *MockMSCalendar) WelcomeFlowEnd(arg0 string) { m.ctrl.T.Helper() m.ctrl.Call(m, "WelcomeFlowEnd", arg0) } -// WelcomeFlowEnd indicates an expected call of WelcomeFlowEnd +// WelcomeFlowEnd indicates an expected call of WelcomeFlowEnd. func (mr *MockMSCalendarMockRecorder) WelcomeFlowEnd(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WelcomeFlowEnd", reflect.TypeOf((*MockMSCalendar)(nil).WelcomeFlowEnd), arg0) diff --git a/server/mscalendar/mock_plugin_api/mock_plugin_api.go b/server/mscalendar/mock_plugin_api/mock_plugin_api.go index 4dfaf355..d1360809 100644 --- a/server/mscalendar/mock_plugin_api/mock_plugin_api.go +++ b/server/mscalendar/mock_plugin_api/mock_plugin_api.go @@ -5,35 +5,36 @@ package mock_plugin_api import ( + reflect "reflect" + gomock "github.com/golang/mock/gomock" model "github.com/mattermost/mattermost-server/v5/model" - reflect "reflect" ) -// MockPluginAPI is a mock of PluginAPI interface +// MockPluginAPI is a mock of PluginAPI interface. type MockPluginAPI struct { ctrl *gomock.Controller recorder *MockPluginAPIMockRecorder } -// MockPluginAPIMockRecorder is the mock recorder for MockPluginAPI +// MockPluginAPIMockRecorder is the mock recorder for MockPluginAPI. type MockPluginAPIMockRecorder struct { mock *MockPluginAPI } -// NewMockPluginAPI creates a new mock instance +// NewMockPluginAPI creates a new mock instance. func NewMockPluginAPI(ctrl *gomock.Controller) *MockPluginAPI { mock := &MockPluginAPI{ctrl: ctrl} mock.recorder = &MockPluginAPIMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockPluginAPI) EXPECT() *MockPluginAPIMockRecorder { return m.recorder } -// GetMattermostUser mocks base method +// GetMattermostUser mocks base method. func (m *MockPluginAPI) GetMattermostUser(arg0 string) (*model.User, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetMattermostUser", arg0) @@ -42,13 +43,13 @@ func (m *MockPluginAPI) GetMattermostUser(arg0 string) (*model.User, error) { return ret0, ret1 } -// GetMattermostUser indicates an expected call of GetMattermostUser +// GetMattermostUser indicates an expected call of GetMattermostUser. func (mr *MockPluginAPIMockRecorder) GetMattermostUser(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMattermostUser", reflect.TypeOf((*MockPluginAPI)(nil).GetMattermostUser), arg0) } -// GetMattermostUserByUsername mocks base method +// GetMattermostUserByUsername mocks base method. func (m *MockPluginAPI) GetMattermostUserByUsername(arg0 string) (*model.User, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetMattermostUserByUsername", arg0) @@ -57,13 +58,13 @@ func (m *MockPluginAPI) GetMattermostUserByUsername(arg0 string) (*model.User, e return ret0, ret1 } -// GetMattermostUserByUsername indicates an expected call of GetMattermostUserByUsername +// GetMattermostUserByUsername indicates an expected call of GetMattermostUserByUsername. func (mr *MockPluginAPIMockRecorder) GetMattermostUserByUsername(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMattermostUserByUsername", reflect.TypeOf((*MockPluginAPI)(nil).GetMattermostUserByUsername), arg0) } -// GetMattermostUserStatus mocks base method +// GetMattermostUserStatus mocks base method. func (m *MockPluginAPI) GetMattermostUserStatus(arg0 string) (*model.Status, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetMattermostUserStatus", arg0) @@ -72,13 +73,13 @@ func (m *MockPluginAPI) GetMattermostUserStatus(arg0 string) (*model.Status, err return ret0, ret1 } -// GetMattermostUserStatus indicates an expected call of GetMattermostUserStatus +// GetMattermostUserStatus indicates an expected call of GetMattermostUserStatus. func (mr *MockPluginAPIMockRecorder) GetMattermostUserStatus(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMattermostUserStatus", reflect.TypeOf((*MockPluginAPI)(nil).GetMattermostUserStatus), arg0) } -// GetMattermostUserStatusesByIds mocks base method +// GetMattermostUserStatusesByIds mocks base method. func (m *MockPluginAPI) GetMattermostUserStatusesByIds(arg0 []string) ([]*model.Status, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetMattermostUserStatusesByIds", arg0) @@ -87,13 +88,13 @@ func (m *MockPluginAPI) GetMattermostUserStatusesByIds(arg0 []string) ([]*model. return ret0, ret1 } -// GetMattermostUserStatusesByIds indicates an expected call of GetMattermostUserStatusesByIds +// GetMattermostUserStatusesByIds indicates an expected call of GetMattermostUserStatusesByIds. func (mr *MockPluginAPIMockRecorder) GetMattermostUserStatusesByIds(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMattermostUserStatusesByIds", reflect.TypeOf((*MockPluginAPI)(nil).GetMattermostUserStatusesByIds), arg0) } -// GetPost mocks base method +// GetPost mocks base method. func (m *MockPluginAPI) GetPost(arg0 string) (*model.Post, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPost", arg0) @@ -102,13 +103,13 @@ func (m *MockPluginAPI) GetPost(arg0 string) (*model.Post, error) { return ret0, ret1 } -// GetPost indicates an expected call of GetPost +// GetPost indicates an expected call of GetPost. func (mr *MockPluginAPIMockRecorder) GetPost(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPost", reflect.TypeOf((*MockPluginAPI)(nil).GetPost), arg0) } -// IsSysAdmin mocks base method +// IsSysAdmin mocks base method. func (m *MockPluginAPI) IsSysAdmin(arg0 string) (bool, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "IsSysAdmin", arg0) @@ -117,13 +118,13 @@ func (m *MockPluginAPI) IsSysAdmin(arg0 string) (bool, error) { return ret0, ret1 } -// IsSysAdmin indicates an expected call of IsSysAdmin +// IsSysAdmin indicates an expected call of IsSysAdmin. func (mr *MockPluginAPIMockRecorder) IsSysAdmin(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsSysAdmin", reflect.TypeOf((*MockPluginAPI)(nil).IsSysAdmin), arg0) } -// UpdateMattermostUserStatus mocks base method +// UpdateMattermostUserStatus mocks base method. func (m *MockPluginAPI) UpdateMattermostUserStatus(arg0, arg1 string) (*model.Status, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateMattermostUserStatus", arg0, arg1) @@ -132,7 +133,7 @@ func (m *MockPluginAPI) UpdateMattermostUserStatus(arg0, arg1 string) (*model.St return ret0, ret1 } -// UpdateMattermostUserStatus indicates an expected call of UpdateMattermostUserStatus +// UpdateMattermostUserStatus indicates an expected call of UpdateMattermostUserStatus. func (mr *MockPluginAPIMockRecorder) UpdateMattermostUserStatus(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMattermostUserStatus", reflect.TypeOf((*MockPluginAPI)(nil).UpdateMattermostUserStatus), arg0, arg1) diff --git a/server/mscalendar/mock_welcomer/mock_welcomer.go b/server/mscalendar/mock_welcomer/mock_welcomer.go index f300f195..14e53652 100644 --- a/server/mscalendar/mock_welcomer/mock_welcomer.go +++ b/server/mscalendar/mock_welcomer/mock_welcomer.go @@ -5,34 +5,35 @@ package mock_welcomer import ( - gomock "github.com/golang/mock/gomock" reflect "reflect" + + gomock "github.com/golang/mock/gomock" ) -// MockWelcomer is a mock of Welcomer interface +// MockWelcomer is a mock of Welcomer interface. type MockWelcomer struct { ctrl *gomock.Controller recorder *MockWelcomerMockRecorder } -// MockWelcomerMockRecorder is the mock recorder for MockWelcomer +// MockWelcomerMockRecorder is the mock recorder for MockWelcomer. type MockWelcomerMockRecorder struct { mock *MockWelcomer } -// NewMockWelcomer creates a new mock instance +// NewMockWelcomer creates a new mock instance. func NewMockWelcomer(ctrl *gomock.Controller) *MockWelcomer { mock := &MockWelcomer{ctrl: ctrl} mock.recorder = &MockWelcomerMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockWelcomer) EXPECT() *MockWelcomerMockRecorder { return m.recorder } -// AfterDisconnect mocks base method +// AfterDisconnect mocks base method. func (m *MockWelcomer) AfterDisconnect(arg0 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AfterDisconnect", arg0) @@ -40,13 +41,13 @@ func (m *MockWelcomer) AfterDisconnect(arg0 string) error { return ret0 } -// AfterDisconnect indicates an expected call of AfterDisconnect +// AfterDisconnect indicates an expected call of AfterDisconnect. func (mr *MockWelcomerMockRecorder) AfterDisconnect(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AfterDisconnect", reflect.TypeOf((*MockWelcomer)(nil).AfterDisconnect), arg0) } -// AfterSuccessfullyConnect mocks base method +// AfterSuccessfullyConnect mocks base method. func (m *MockWelcomer) AfterSuccessfullyConnect(arg0, arg1 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AfterSuccessfullyConnect", arg0, arg1) @@ -54,13 +55,13 @@ func (m *MockWelcomer) AfterSuccessfullyConnect(arg0, arg1 string) error { return ret0 } -// AfterSuccessfullyConnect indicates an expected call of AfterSuccessfullyConnect +// AfterSuccessfullyConnect indicates an expected call of AfterSuccessfullyConnect. func (mr *MockWelcomerMockRecorder) AfterSuccessfullyConnect(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AfterSuccessfullyConnect", reflect.TypeOf((*MockWelcomer)(nil).AfterSuccessfullyConnect), arg0, arg1) } -// Welcome mocks base method +// Welcome mocks base method. func (m *MockWelcomer) Welcome(arg0 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Welcome", arg0) @@ -68,19 +69,19 @@ func (m *MockWelcomer) Welcome(arg0 string) error { return ret0 } -// Welcome indicates an expected call of Welcome +// Welcome indicates an expected call of Welcome. func (mr *MockWelcomerMockRecorder) Welcome(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Welcome", reflect.TypeOf((*MockWelcomer)(nil).Welcome), arg0) } -// WelcomeFlowEnd mocks base method +// WelcomeFlowEnd mocks base method. func (m *MockWelcomer) WelcomeFlowEnd(arg0 string) { m.ctrl.T.Helper() m.ctrl.Call(m, "WelcomeFlowEnd", arg0) } -// WelcomeFlowEnd indicates an expected call of WelcomeFlowEnd +// WelcomeFlowEnd indicates an expected call of WelcomeFlowEnd. func (mr *MockWelcomerMockRecorder) WelcomeFlowEnd(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WelcomeFlowEnd", reflect.TypeOf((*MockWelcomer)(nil).WelcomeFlowEnd), arg0) diff --git a/server/remote/mock_remote/mock_client.go b/server/remote/mock_remote/mock_client.go index b763254f..ca6358ab 100644 --- a/server/remote/mock_remote/mock_client.go +++ b/server/remote/mock_remote/mock_client.go @@ -5,37 +5,38 @@ package mock_remote import ( - gomock "github.com/golang/mock/gomock" - remote "github.com/mattermost/mattermost-plugin-mscalendar/server/remote" url "net/url" reflect "reflect" time "time" + + gomock "github.com/golang/mock/gomock" + remote "github.com/mattermost/mattermost-plugin-mscalendar/server/remote" ) -// MockClient is a mock of Client interface +// MockClient is a mock of Client interface. type MockClient struct { ctrl *gomock.Controller recorder *MockClientMockRecorder } -// MockClientMockRecorder is the mock recorder for MockClient +// MockClientMockRecorder is the mock recorder for MockClient. type MockClientMockRecorder struct { mock *MockClient } -// NewMockClient creates a new mock instance +// NewMockClient creates a new mock instance. func NewMockClient(ctrl *gomock.Controller) *MockClient { mock := &MockClient{ctrl: ctrl} mock.recorder = &MockClientMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockClient) EXPECT() *MockClientMockRecorder { return m.recorder } -// AcceptEvent mocks base method +// AcceptEvent mocks base method. func (m *MockClient) AcceptEvent(arg0, arg1 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AcceptEvent", arg0, arg1) @@ -43,13 +44,13 @@ func (m *MockClient) AcceptEvent(arg0, arg1 string) error { return ret0 } -// AcceptEvent indicates an expected call of AcceptEvent +// AcceptEvent indicates an expected call of AcceptEvent. func (mr *MockClientMockRecorder) AcceptEvent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AcceptEvent", reflect.TypeOf((*MockClient)(nil).AcceptEvent), arg0, arg1) } -// CallFormPost mocks base method +// CallFormPost mocks base method. func (m *MockClient) CallFormPost(arg0, arg1 string, arg2 url.Values, arg3 interface{}) ([]byte, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CallFormPost", arg0, arg1, arg2, arg3) @@ -58,13 +59,13 @@ func (m *MockClient) CallFormPost(arg0, arg1 string, arg2 url.Values, arg3 inter return ret0, ret1 } -// CallFormPost indicates an expected call of CallFormPost +// CallFormPost indicates an expected call of CallFormPost. func (mr *MockClientMockRecorder) CallFormPost(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CallFormPost", reflect.TypeOf((*MockClient)(nil).CallFormPost), arg0, arg1, arg2, arg3) } -// CallJSON mocks base method +// CallJSON mocks base method. func (m *MockClient) CallJSON(arg0, arg1 string, arg2, arg3 interface{}) ([]byte, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CallJSON", arg0, arg1, arg2, arg3) @@ -73,13 +74,13 @@ func (m *MockClient) CallJSON(arg0, arg1 string, arg2, arg3 interface{}) ([]byte return ret0, ret1 } -// CallJSON indicates an expected call of CallJSON +// CallJSON indicates an expected call of CallJSON. func (mr *MockClientMockRecorder) CallJSON(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CallJSON", reflect.TypeOf((*MockClient)(nil).CallJSON), arg0, arg1, arg2, arg3) } -// CreateCalendar mocks base method +// CreateCalendar mocks base method. func (m *MockClient) CreateCalendar(arg0 string, arg1 *remote.Calendar) (*remote.Calendar, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateCalendar", arg0, arg1) @@ -88,13 +89,13 @@ func (m *MockClient) CreateCalendar(arg0 string, arg1 *remote.Calendar) (*remote return ret0, ret1 } -// CreateCalendar indicates an expected call of CreateCalendar +// CreateCalendar indicates an expected call of CreateCalendar. func (mr *MockClientMockRecorder) CreateCalendar(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCalendar", reflect.TypeOf((*MockClient)(nil).CreateCalendar), arg0, arg1) } -// CreateEvent mocks base method +// CreateEvent mocks base method. func (m *MockClient) CreateEvent(arg0 string, arg1 *remote.Event) (*remote.Event, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateEvent", arg0, arg1) @@ -103,13 +104,13 @@ func (m *MockClient) CreateEvent(arg0 string, arg1 *remote.Event) (*remote.Event return ret0, ret1 } -// CreateEvent indicates an expected call of CreateEvent +// CreateEvent indicates an expected call of CreateEvent. func (mr *MockClientMockRecorder) CreateEvent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateEvent", reflect.TypeOf((*MockClient)(nil).CreateEvent), arg0, arg1) } -// CreateMySubscription mocks base method +// CreateMySubscription mocks base method. func (m *MockClient) CreateMySubscription(arg0 string) (*remote.Subscription, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateMySubscription", arg0) @@ -118,13 +119,13 @@ func (m *MockClient) CreateMySubscription(arg0 string) (*remote.Subscription, er return ret0, ret1 } -// CreateMySubscription indicates an expected call of CreateMySubscription +// CreateMySubscription indicates an expected call of CreateMySubscription. func (mr *MockClientMockRecorder) CreateMySubscription(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateMySubscription", reflect.TypeOf((*MockClient)(nil).CreateMySubscription), arg0) } -// DeclineEvent mocks base method +// DeclineEvent mocks base method. func (m *MockClient) DeclineEvent(arg0, arg1 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeclineEvent", arg0, arg1) @@ -132,13 +133,13 @@ func (m *MockClient) DeclineEvent(arg0, arg1 string) error { return ret0 } -// DeclineEvent indicates an expected call of DeclineEvent +// DeclineEvent indicates an expected call of DeclineEvent. func (mr *MockClientMockRecorder) DeclineEvent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeclineEvent", reflect.TypeOf((*MockClient)(nil).DeclineEvent), arg0, arg1) } -// DeleteCalendar mocks base method +// DeleteCalendar mocks base method. func (m *MockClient) DeleteCalendar(arg0, arg1 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteCalendar", arg0, arg1) @@ -146,13 +147,13 @@ func (m *MockClient) DeleteCalendar(arg0, arg1 string) error { return ret0 } -// DeleteCalendar indicates an expected call of DeleteCalendar +// DeleteCalendar indicates an expected call of DeleteCalendar. func (mr *MockClientMockRecorder) DeleteCalendar(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCalendar", reflect.TypeOf((*MockClient)(nil).DeleteCalendar), arg0, arg1) } -// DeleteSubscription mocks base method +// DeleteSubscription mocks base method. func (m *MockClient) DeleteSubscription(arg0 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteSubscription", arg0) @@ -160,13 +161,13 @@ func (m *MockClient) DeleteSubscription(arg0 string) error { return ret0 } -// DeleteSubscription indicates an expected call of DeleteSubscription +// DeleteSubscription indicates an expected call of DeleteSubscription. func (mr *MockClientMockRecorder) DeleteSubscription(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSubscription", reflect.TypeOf((*MockClient)(nil).DeleteSubscription), arg0) } -// DoBatchViewCalendarRequests mocks base method +// DoBatchViewCalendarRequests mocks base method. func (m *MockClient) DoBatchViewCalendarRequests(arg0 []*remote.ViewCalendarParams) ([]*remote.ViewCalendarResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DoBatchViewCalendarRequests", arg0) @@ -175,13 +176,13 @@ func (m *MockClient) DoBatchViewCalendarRequests(arg0 []*remote.ViewCalendarPara return ret0, ret1 } -// DoBatchViewCalendarRequests indicates an expected call of DoBatchViewCalendarRequests +// DoBatchViewCalendarRequests indicates an expected call of DoBatchViewCalendarRequests. func (mr *MockClientMockRecorder) DoBatchViewCalendarRequests(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DoBatchViewCalendarRequests", reflect.TypeOf((*MockClient)(nil).DoBatchViewCalendarRequests), arg0) } -// FindMeetingTimes mocks base method +// FindMeetingTimes mocks base method. func (m *MockClient) FindMeetingTimes(arg0 string, arg1 *remote.FindMeetingTimesParameters) (*remote.MeetingTimeSuggestionResults, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "FindMeetingTimes", arg0, arg1) @@ -190,13 +191,13 @@ func (m *MockClient) FindMeetingTimes(arg0 string, arg1 *remote.FindMeetingTimes return ret0, ret1 } -// FindMeetingTimes indicates an expected call of FindMeetingTimes +// FindMeetingTimes indicates an expected call of FindMeetingTimes. func (mr *MockClientMockRecorder) FindMeetingTimes(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindMeetingTimes", reflect.TypeOf((*MockClient)(nil).FindMeetingTimes), arg0, arg1) } -// GetCalendars mocks base method +// GetCalendars mocks base method. func (m *MockClient) GetCalendars(arg0 string) ([]*remote.Calendar, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetCalendars", arg0) @@ -205,13 +206,13 @@ func (m *MockClient) GetCalendars(arg0 string) ([]*remote.Calendar, error) { return ret0, ret1 } -// GetCalendars indicates an expected call of GetCalendars +// GetCalendars indicates an expected call of GetCalendars. func (mr *MockClientMockRecorder) GetCalendars(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCalendars", reflect.TypeOf((*MockClient)(nil).GetCalendars), arg0) } -// GetDefaultCalendarView mocks base method +// GetDefaultCalendarView mocks base method. func (m *MockClient) GetDefaultCalendarView(arg0 string, arg1, arg2 time.Time) ([]*remote.Event, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetDefaultCalendarView", arg0, arg1, arg2) @@ -220,13 +221,13 @@ func (m *MockClient) GetDefaultCalendarView(arg0 string, arg1, arg2 time.Time) ( return ret0, ret1 } -// GetDefaultCalendarView indicates an expected call of GetDefaultCalendarView +// GetDefaultCalendarView indicates an expected call of GetDefaultCalendarView. func (mr *MockClientMockRecorder) GetDefaultCalendarView(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDefaultCalendarView", reflect.TypeOf((*MockClient)(nil).GetDefaultCalendarView), arg0, arg1, arg2) } -// GetEvent mocks base method +// GetEvent mocks base method. func (m *MockClient) GetEvent(arg0, arg1 string) (*remote.Event, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetEvent", arg0, arg1) @@ -235,13 +236,13 @@ func (m *MockClient) GetEvent(arg0, arg1 string) (*remote.Event, error) { return ret0, ret1 } -// GetEvent indicates an expected call of GetEvent +// GetEvent indicates an expected call of GetEvent. func (mr *MockClientMockRecorder) GetEvent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEvent", reflect.TypeOf((*MockClient)(nil).GetEvent), arg0, arg1) } -// GetMailboxSettings mocks base method +// GetMailboxSettings mocks base method. func (m *MockClient) GetMailboxSettings(arg0 string) (*remote.MailboxSettings, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetMailboxSettings", arg0) @@ -250,13 +251,13 @@ func (m *MockClient) GetMailboxSettings(arg0 string) (*remote.MailboxSettings, e return ret0, ret1 } -// GetMailboxSettings indicates an expected call of GetMailboxSettings +// GetMailboxSettings indicates an expected call of GetMailboxSettings. func (mr *MockClientMockRecorder) GetMailboxSettings(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMailboxSettings", reflect.TypeOf((*MockClient)(nil).GetMailboxSettings), arg0) } -// GetMe mocks base method +// GetMe mocks base method. func (m *MockClient) GetMe() (*remote.User, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetMe") @@ -265,13 +266,13 @@ func (m *MockClient) GetMe() (*remote.User, error) { return ret0, ret1 } -// GetMe indicates an expected call of GetMe +// GetMe indicates an expected call of GetMe. func (mr *MockClientMockRecorder) GetMe() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMe", reflect.TypeOf((*MockClient)(nil).GetMe)) } -// GetNotificationData mocks base method +// GetNotificationData mocks base method. func (m *MockClient) GetNotificationData(arg0 *remote.Notification) (*remote.Notification, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetNotificationData", arg0) @@ -280,13 +281,13 @@ func (m *MockClient) GetNotificationData(arg0 *remote.Notification) (*remote.Not return ret0, ret1 } -// GetNotificationData indicates an expected call of GetNotificationData +// GetNotificationData indicates an expected call of GetNotificationData. func (mr *MockClientMockRecorder) GetNotificationData(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNotificationData", reflect.TypeOf((*MockClient)(nil).GetNotificationData), arg0) } -// GetSchedule mocks base method +// GetSchedule mocks base method. func (m *MockClient) GetSchedule(arg0 []*remote.ScheduleUserInfo, arg1, arg2 *remote.DateTime, arg3 int) ([]*remote.ScheduleInformation, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetSchedule", arg0, arg1, arg2, arg3) @@ -295,13 +296,13 @@ func (m *MockClient) GetSchedule(arg0 []*remote.ScheduleUserInfo, arg1, arg2 *re return ret0, ret1 } -// GetSchedule indicates an expected call of GetSchedule +// GetSchedule indicates an expected call of GetSchedule. func (mr *MockClientMockRecorder) GetSchedule(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSchedule", reflect.TypeOf((*MockClient)(nil).GetSchedule), arg0, arg1, arg2, arg3) } -// GetSuperuserToken mocks base method +// GetSuperuserToken mocks base method. func (m *MockClient) GetSuperuserToken() (string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetSuperuserToken") @@ -310,13 +311,13 @@ func (m *MockClient) GetSuperuserToken() (string, error) { return ret0, ret1 } -// GetSuperuserToken indicates an expected call of GetSuperuserToken +// GetSuperuserToken indicates an expected call of GetSuperuserToken. func (mr *MockClientMockRecorder) GetSuperuserToken() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSuperuserToken", reflect.TypeOf((*MockClient)(nil).GetSuperuserToken)) } -// ListSubscriptions mocks base method +// ListSubscriptions mocks base method. func (m *MockClient) ListSubscriptions() ([]*remote.Subscription, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ListSubscriptions") @@ -325,13 +326,13 @@ func (m *MockClient) ListSubscriptions() ([]*remote.Subscription, error) { return ret0, ret1 } -// ListSubscriptions indicates an expected call of ListSubscriptions +// ListSubscriptions indicates an expected call of ListSubscriptions. func (mr *MockClientMockRecorder) ListSubscriptions() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSubscriptions", reflect.TypeOf((*MockClient)(nil).ListSubscriptions)) } -// RenewSubscription mocks base method +// RenewSubscription mocks base method. func (m *MockClient) RenewSubscription(arg0 string) (*remote.Subscription, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "RenewSubscription", arg0) @@ -340,13 +341,13 @@ func (m *MockClient) RenewSubscription(arg0 string) (*remote.Subscription, error return ret0, ret1 } -// RenewSubscription indicates an expected call of RenewSubscription +// RenewSubscription indicates an expected call of RenewSubscription. func (mr *MockClientMockRecorder) RenewSubscription(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RenewSubscription", reflect.TypeOf((*MockClient)(nil).RenewSubscription), arg0) } -// TentativelyAcceptEvent mocks base method +// TentativelyAcceptEvent mocks base method. func (m *MockClient) TentativelyAcceptEvent(arg0, arg1 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "TentativelyAcceptEvent", arg0, arg1) @@ -354,7 +355,7 @@ func (m *MockClient) TentativelyAcceptEvent(arg0, arg1 string) error { return ret0 } -// TentativelyAcceptEvent indicates an expected call of TentativelyAcceptEvent +// TentativelyAcceptEvent indicates an expected call of TentativelyAcceptEvent. func (mr *MockClientMockRecorder) TentativelyAcceptEvent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TentativelyAcceptEvent", reflect.TypeOf((*MockClient)(nil).TentativelyAcceptEvent), arg0, arg1) diff --git a/server/remote/mock_remote/mock_remote.go b/server/remote/mock_remote/mock_remote.go index 6a855748..934c852e 100644 --- a/server/remote/mock_remote/mock_remote.go +++ b/server/remote/mock_remote/mock_remote.go @@ -6,37 +6,38 @@ package mock_remote import ( context "context" + http "net/http" + reflect "reflect" + gomock "github.com/golang/mock/gomock" remote "github.com/mattermost/mattermost-plugin-mscalendar/server/remote" oauth2 "golang.org/x/oauth2" - http "net/http" - reflect "reflect" ) -// MockRemote is a mock of Remote interface +// MockRemote is a mock of Remote interface. type MockRemote struct { ctrl *gomock.Controller recorder *MockRemoteMockRecorder } -// MockRemoteMockRecorder is the mock recorder for MockRemote +// MockRemoteMockRecorder is the mock recorder for MockRemote. type MockRemoteMockRecorder struct { mock *MockRemote } -// NewMockRemote creates a new mock instance +// NewMockRemote creates a new mock instance. func NewMockRemote(ctrl *gomock.Controller) *MockRemote { mock := &MockRemote{ctrl: ctrl} mock.recorder = &MockRemoteMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockRemote) EXPECT() *MockRemoteMockRecorder { return m.recorder } -// HandleWebhook mocks base method +// HandleWebhook mocks base method. func (m *MockRemote) HandleWebhook(arg0 http.ResponseWriter, arg1 *http.Request) []*remote.Notification { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "HandleWebhook", arg0, arg1) @@ -44,13 +45,13 @@ func (m *MockRemote) HandleWebhook(arg0 http.ResponseWriter, arg1 *http.Request) return ret0 } -// HandleWebhook indicates an expected call of HandleWebhook +// HandleWebhook indicates an expected call of HandleWebhook. func (mr *MockRemoteMockRecorder) HandleWebhook(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandleWebhook", reflect.TypeOf((*MockRemote)(nil).HandleWebhook), arg0, arg1) } -// MakeClient mocks base method +// MakeClient mocks base method. func (m *MockRemote) MakeClient(arg0 context.Context, arg1 *oauth2.Token) remote.Client { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "MakeClient", arg0, arg1) @@ -58,13 +59,13 @@ func (m *MockRemote) MakeClient(arg0 context.Context, arg1 *oauth2.Token) remote return ret0 } -// MakeClient indicates an expected call of MakeClient +// MakeClient indicates an expected call of MakeClient. func (mr *MockRemoteMockRecorder) MakeClient(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MakeClient", reflect.TypeOf((*MockRemote)(nil).MakeClient), arg0, arg1) } -// MakeSuperuserClient mocks base method +// MakeSuperuserClient mocks base method. func (m *MockRemote) MakeSuperuserClient(arg0 context.Context) (remote.Client, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "MakeSuperuserClient", arg0) @@ -73,13 +74,13 @@ func (m *MockRemote) MakeSuperuserClient(arg0 context.Context) (remote.Client, e return ret0, ret1 } -// MakeSuperuserClient indicates an expected call of MakeSuperuserClient +// MakeSuperuserClient indicates an expected call of MakeSuperuserClient. func (mr *MockRemoteMockRecorder) MakeSuperuserClient(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MakeSuperuserClient", reflect.TypeOf((*MockRemote)(nil).MakeSuperuserClient), arg0) } -// NewOAuth2Config mocks base method +// NewOAuth2Config mocks base method. func (m *MockRemote) NewOAuth2Config() *oauth2.Config { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "NewOAuth2Config") @@ -87,7 +88,7 @@ func (m *MockRemote) NewOAuth2Config() *oauth2.Config { return ret0 } -// NewOAuth2Config indicates an expected call of NewOAuth2Config +// NewOAuth2Config indicates an expected call of NewOAuth2Config. func (mr *MockRemoteMockRecorder) NewOAuth2Config() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewOAuth2Config", reflect.TypeOf((*MockRemote)(nil).NewOAuth2Config)) diff --git a/server/store/mock_store/mock_store.go b/server/store/mock_store/mock_store.go index 16996145..bcfe3f37 100644 --- a/server/store/mock_store/mock_store.go +++ b/server/store/mock_store/mock_store.go @@ -5,35 +5,36 @@ package mock_store import ( + reflect "reflect" + gomock "github.com/golang/mock/gomock" store "github.com/mattermost/mattermost-plugin-mscalendar/server/store" - reflect "reflect" ) -// MockStore is a mock of Store interface +// MockStore is a mock of Store interface. type MockStore struct { ctrl *gomock.Controller recorder *MockStoreMockRecorder } -// MockStoreMockRecorder is the mock recorder for MockStore +// MockStoreMockRecorder is the mock recorder for MockStore. type MockStoreMockRecorder struct { mock *MockStore } -// NewMockStore creates a new mock instance +// NewMockStore creates a new mock instance. func NewMockStore(ctrl *gomock.Controller) *MockStore { mock := &MockStore{ctrl: ctrl} mock.recorder = &MockStoreMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockStore) EXPECT() *MockStoreMockRecorder { return m.recorder } -// DeleteCurrentStep mocks base method +// DeleteCurrentStep mocks base method. func (m *MockStore) DeleteCurrentStep(arg0 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteCurrentStep", arg0) @@ -41,13 +42,13 @@ func (m *MockStore) DeleteCurrentStep(arg0 string) error { return ret0 } -// DeleteCurrentStep indicates an expected call of DeleteCurrentStep +// DeleteCurrentStep indicates an expected call of DeleteCurrentStep. func (mr *MockStoreMockRecorder) DeleteCurrentStep(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCurrentStep", reflect.TypeOf((*MockStore)(nil).DeleteCurrentStep), arg0) } -// DeletePanelPostID mocks base method +// DeletePanelPostID mocks base method. func (m *MockStore) DeletePanelPostID(arg0 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeletePanelPostID", arg0) @@ -55,13 +56,13 @@ func (m *MockStore) DeletePanelPostID(arg0 string) error { return ret0 } -// DeletePanelPostID indicates an expected call of DeletePanelPostID +// DeletePanelPostID indicates an expected call of DeletePanelPostID. func (mr *MockStoreMockRecorder) DeletePanelPostID(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePanelPostID", reflect.TypeOf((*MockStore)(nil).DeletePanelPostID), arg0) } -// DeleteUser mocks base method +// DeleteUser mocks base method. func (m *MockStore) DeleteUser(arg0 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteUser", arg0) @@ -69,13 +70,13 @@ func (m *MockStore) DeleteUser(arg0 string) error { return ret0 } -// DeleteUser indicates an expected call of DeleteUser +// DeleteUser indicates an expected call of DeleteUser. func (mr *MockStoreMockRecorder) DeleteUser(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUser", reflect.TypeOf((*MockStore)(nil).DeleteUser), arg0) } -// DeleteUserEvent mocks base method +// DeleteUserEvent mocks base method. func (m *MockStore) DeleteUserEvent(arg0, arg1 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteUserEvent", arg0, arg1) @@ -83,13 +84,13 @@ func (m *MockStore) DeleteUserEvent(arg0, arg1 string) error { return ret0 } -// DeleteUserEvent indicates an expected call of DeleteUserEvent +// DeleteUserEvent indicates an expected call of DeleteUserEvent. func (mr *MockStoreMockRecorder) DeleteUserEvent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserEvent", reflect.TypeOf((*MockStore)(nil).DeleteUserEvent), arg0, arg1) } -// DeleteUserFromIndex mocks base method +// DeleteUserFromIndex mocks base method. func (m *MockStore) DeleteUserFromIndex(arg0 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteUserFromIndex", arg0) @@ -97,13 +98,13 @@ func (m *MockStore) DeleteUserFromIndex(arg0 string) error { return ret0 } -// DeleteUserFromIndex indicates an expected call of DeleteUserFromIndex +// DeleteUserFromIndex indicates an expected call of DeleteUserFromIndex. func (mr *MockStoreMockRecorder) DeleteUserFromIndex(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserFromIndex", reflect.TypeOf((*MockStore)(nil).DeleteUserFromIndex), arg0) } -// DeleteUserSubscription mocks base method +// DeleteUserSubscription mocks base method. func (m *MockStore) DeleteUserSubscription(arg0 *store.User, arg1 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteUserSubscription", arg0, arg1) @@ -111,13 +112,13 @@ func (m *MockStore) DeleteUserSubscription(arg0 *store.User, arg1 string) error return ret0 } -// DeleteUserSubscription indicates an expected call of DeleteUserSubscription +// DeleteUserSubscription indicates an expected call of DeleteUserSubscription. func (mr *MockStoreMockRecorder) DeleteUserSubscription(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserSubscription", reflect.TypeOf((*MockStore)(nil).DeleteUserSubscription), arg0, arg1) } -// DeleteUserWelcomePost mocks base method +// DeleteUserWelcomePost mocks base method. func (m *MockStore) DeleteUserWelcomePost(arg0 string) (string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteUserWelcomePost", arg0) @@ -126,13 +127,13 @@ func (m *MockStore) DeleteUserWelcomePost(arg0 string) (string, error) { return ret0, ret1 } -// DeleteUserWelcomePost indicates an expected call of DeleteUserWelcomePost +// DeleteUserWelcomePost indicates an expected call of DeleteUserWelcomePost. func (mr *MockStoreMockRecorder) DeleteUserWelcomePost(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserWelcomePost", reflect.TypeOf((*MockStore)(nil).DeleteUserWelcomePost), arg0) } -// GetCurrentStep mocks base method +// GetCurrentStep mocks base method. func (m *MockStore) GetCurrentStep(arg0 string) (int, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetCurrentStep", arg0) @@ -141,13 +142,13 @@ func (m *MockStore) GetCurrentStep(arg0 string) (int, error) { return ret0, ret1 } -// GetCurrentStep indicates an expected call of GetCurrentStep +// GetCurrentStep indicates an expected call of GetCurrentStep. func (mr *MockStoreMockRecorder) GetCurrentStep(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCurrentStep", reflect.TypeOf((*MockStore)(nil).GetCurrentStep), arg0) } -// GetPanelPostID mocks base method +// GetPanelPostID mocks base method. func (m *MockStore) GetPanelPostID(arg0 string) (string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPanelPostID", arg0) @@ -156,13 +157,13 @@ func (m *MockStore) GetPanelPostID(arg0 string) (string, error) { return ret0, ret1 } -// GetPanelPostID indicates an expected call of GetPanelPostID +// GetPanelPostID indicates an expected call of GetPanelPostID. func (mr *MockStoreMockRecorder) GetPanelPostID(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPanelPostID", reflect.TypeOf((*MockStore)(nil).GetPanelPostID), arg0) } -// GetPostID mocks base method +// GetPostID mocks base method. func (m *MockStore) GetPostID(arg0, arg1 string) (string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPostID", arg0, arg1) @@ -171,13 +172,13 @@ func (m *MockStore) GetPostID(arg0, arg1 string) (string, error) { return ret0, ret1 } -// GetPostID indicates an expected call of GetPostID +// GetPostID indicates an expected call of GetPostID. func (mr *MockStoreMockRecorder) GetPostID(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPostID", reflect.TypeOf((*MockStore)(nil).GetPostID), arg0, arg1) } -// GetSetting mocks base method +// GetSetting mocks base method. func (m *MockStore) GetSetting(arg0, arg1 string) (interface{}, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetSetting", arg0, arg1) @@ -186,13 +187,13 @@ func (m *MockStore) GetSetting(arg0, arg1 string) (interface{}, error) { return ret0, ret1 } -// GetSetting indicates an expected call of GetSetting +// GetSetting indicates an expected call of GetSetting. func (mr *MockStoreMockRecorder) GetSetting(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSetting", reflect.TypeOf((*MockStore)(nil).GetSetting), arg0, arg1) } -// LoadMattermostUserID mocks base method +// LoadMattermostUserID mocks base method. func (m *MockStore) LoadMattermostUserID(arg0 string) (string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "LoadMattermostUserID", arg0) @@ -201,13 +202,13 @@ func (m *MockStore) LoadMattermostUserID(arg0 string) (string, error) { return ret0, ret1 } -// LoadMattermostUserID indicates an expected call of LoadMattermostUserID +// LoadMattermostUserID indicates an expected call of LoadMattermostUserID. func (mr *MockStoreMockRecorder) LoadMattermostUserID(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadMattermostUserID", reflect.TypeOf((*MockStore)(nil).LoadMattermostUserID), arg0) } -// LoadSubscription mocks base method +// LoadSubscription mocks base method. func (m *MockStore) LoadSubscription(arg0 string) (*store.Subscription, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "LoadSubscription", arg0) @@ -216,13 +217,13 @@ func (m *MockStore) LoadSubscription(arg0 string) (*store.Subscription, error) { return ret0, ret1 } -// LoadSubscription indicates an expected call of LoadSubscription +// LoadSubscription indicates an expected call of LoadSubscription. func (mr *MockStoreMockRecorder) LoadSubscription(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadSubscription", reflect.TypeOf((*MockStore)(nil).LoadSubscription), arg0) } -// LoadUser mocks base method +// LoadUser mocks base method. func (m *MockStore) LoadUser(arg0 string) (*store.User, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "LoadUser", arg0) @@ -231,13 +232,13 @@ func (m *MockStore) LoadUser(arg0 string) (*store.User, error) { return ret0, ret1 } -// LoadUser indicates an expected call of LoadUser +// LoadUser indicates an expected call of LoadUser. func (mr *MockStoreMockRecorder) LoadUser(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadUser", reflect.TypeOf((*MockStore)(nil).LoadUser), arg0) } -// LoadUserEvent mocks base method +// LoadUserEvent mocks base method. func (m *MockStore) LoadUserEvent(arg0, arg1 string) (*store.Event, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "LoadUserEvent", arg0, arg1) @@ -246,13 +247,13 @@ func (m *MockStore) LoadUserEvent(arg0, arg1 string) (*store.Event, error) { return ret0, ret1 } -// LoadUserEvent indicates an expected call of LoadUserEvent +// LoadUserEvent indicates an expected call of LoadUserEvent. func (mr *MockStoreMockRecorder) LoadUserEvent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadUserEvent", reflect.TypeOf((*MockStore)(nil).LoadUserEvent), arg0, arg1) } -// LoadUserFromIndex mocks base method +// LoadUserFromIndex mocks base method. func (m *MockStore) LoadUserFromIndex(arg0 string) (*store.UserShort, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "LoadUserFromIndex", arg0) @@ -261,13 +262,13 @@ func (m *MockStore) LoadUserFromIndex(arg0 string) (*store.UserShort, error) { return ret0, ret1 } -// LoadUserFromIndex indicates an expected call of LoadUserFromIndex +// LoadUserFromIndex indicates an expected call of LoadUserFromIndex. func (mr *MockStoreMockRecorder) LoadUserFromIndex(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadUserFromIndex", reflect.TypeOf((*MockStore)(nil).LoadUserFromIndex), arg0) } -// LoadUserIndex mocks base method +// LoadUserIndex mocks base method. func (m *MockStore) LoadUserIndex() (store.UserIndex, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "LoadUserIndex") @@ -276,13 +277,13 @@ func (m *MockStore) LoadUserIndex() (store.UserIndex, error) { return ret0, ret1 } -// LoadUserIndex indicates an expected call of LoadUserIndex +// LoadUserIndex indicates an expected call of LoadUserIndex. func (mr *MockStoreMockRecorder) LoadUserIndex() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadUserIndex", reflect.TypeOf((*MockStore)(nil).LoadUserIndex)) } -// LoadUserWelcomePost mocks base method +// LoadUserWelcomePost mocks base method. func (m *MockStore) LoadUserWelcomePost(arg0 string) (string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "LoadUserWelcomePost", arg0) @@ -291,13 +292,13 @@ func (m *MockStore) LoadUserWelcomePost(arg0 string) (string, error) { return ret0, ret1 } -// LoadUserWelcomePost indicates an expected call of LoadUserWelcomePost +// LoadUserWelcomePost indicates an expected call of LoadUserWelcomePost. func (mr *MockStoreMockRecorder) LoadUserWelcomePost(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadUserWelcomePost", reflect.TypeOf((*MockStore)(nil).LoadUserWelcomePost), arg0) } -// ModifyUserIndex mocks base method +// ModifyUserIndex mocks base method. func (m *MockStore) ModifyUserIndex(arg0 func(store.UserIndex) (store.UserIndex, error)) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ModifyUserIndex", arg0) @@ -305,13 +306,13 @@ func (m *MockStore) ModifyUserIndex(arg0 func(store.UserIndex) (store.UserIndex, return ret0 } -// ModifyUserIndex indicates an expected call of ModifyUserIndex +// ModifyUserIndex indicates an expected call of ModifyUserIndex. func (mr *MockStoreMockRecorder) ModifyUserIndex(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModifyUserIndex", reflect.TypeOf((*MockStore)(nil).ModifyUserIndex), arg0) } -// RemovePostID mocks base method +// RemovePostID mocks base method. func (m *MockStore) RemovePostID(arg0, arg1 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "RemovePostID", arg0, arg1) @@ -319,13 +320,13 @@ func (m *MockStore) RemovePostID(arg0, arg1 string) error { return ret0 } -// RemovePostID indicates an expected call of RemovePostID +// RemovePostID indicates an expected call of RemovePostID. func (mr *MockStoreMockRecorder) RemovePostID(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemovePostID", reflect.TypeOf((*MockStore)(nil).RemovePostID), arg0, arg1) } -// SetCurrentStep mocks base method +// SetCurrentStep mocks base method. func (m *MockStore) SetCurrentStep(arg0 string, arg1 int) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SetCurrentStep", arg0, arg1) @@ -333,13 +334,13 @@ func (m *MockStore) SetCurrentStep(arg0 string, arg1 int) error { return ret0 } -// SetCurrentStep indicates an expected call of SetCurrentStep +// SetCurrentStep indicates an expected call of SetCurrentStep. func (mr *MockStoreMockRecorder) SetCurrentStep(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetCurrentStep", reflect.TypeOf((*MockStore)(nil).SetCurrentStep), arg0, arg1) } -// SetPanelPostID mocks base method +// SetPanelPostID mocks base method. func (m *MockStore) SetPanelPostID(arg0, arg1 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SetPanelPostID", arg0, arg1) @@ -347,13 +348,13 @@ func (m *MockStore) SetPanelPostID(arg0, arg1 string) error { return ret0 } -// SetPanelPostID indicates an expected call of SetPanelPostID +// SetPanelPostID indicates an expected call of SetPanelPostID. func (mr *MockStoreMockRecorder) SetPanelPostID(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetPanelPostID", reflect.TypeOf((*MockStore)(nil).SetPanelPostID), arg0, arg1) } -// SetPostID mocks base method +// SetPostID mocks base method. func (m *MockStore) SetPostID(arg0, arg1, arg2 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SetPostID", arg0, arg1, arg2) @@ -361,13 +362,13 @@ func (m *MockStore) SetPostID(arg0, arg1, arg2 string) error { return ret0 } -// SetPostID indicates an expected call of SetPostID +// SetPostID indicates an expected call of SetPostID. func (mr *MockStoreMockRecorder) SetPostID(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetPostID", reflect.TypeOf((*MockStore)(nil).SetPostID), arg0, arg1, arg2) } -// SetProperty mocks base method +// SetProperty mocks base method. func (m *MockStore) SetProperty(arg0, arg1 string, arg2 bool) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SetProperty", arg0, arg1, arg2) @@ -375,13 +376,13 @@ func (m *MockStore) SetProperty(arg0, arg1 string, arg2 bool) error { return ret0 } -// SetProperty indicates an expected call of SetProperty +// SetProperty indicates an expected call of SetProperty. func (mr *MockStoreMockRecorder) SetProperty(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetProperty", reflect.TypeOf((*MockStore)(nil).SetProperty), arg0, arg1, arg2) } -// SetSetting mocks base method +// SetSetting mocks base method. func (m *MockStore) SetSetting(arg0, arg1 string, arg2 interface{}) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SetSetting", arg0, arg1, arg2) @@ -389,13 +390,13 @@ func (m *MockStore) SetSetting(arg0, arg1 string, arg2 interface{}) error { return ret0 } -// SetSetting indicates an expected call of SetSetting +// SetSetting indicates an expected call of SetSetting. func (mr *MockStoreMockRecorder) SetSetting(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSetting", reflect.TypeOf((*MockStore)(nil).SetSetting), arg0, arg1, arg2) } -// StoreOAuth2State mocks base method +// StoreOAuth2State mocks base method. func (m *MockStore) StoreOAuth2State(arg0 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "StoreOAuth2State", arg0) @@ -403,13 +404,13 @@ func (m *MockStore) StoreOAuth2State(arg0 string) error { return ret0 } -// StoreOAuth2State indicates an expected call of StoreOAuth2State +// StoreOAuth2State indicates an expected call of StoreOAuth2State. func (mr *MockStoreMockRecorder) StoreOAuth2State(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StoreOAuth2State", reflect.TypeOf((*MockStore)(nil).StoreOAuth2State), arg0) } -// StoreUser mocks base method +// StoreUser mocks base method. func (m *MockStore) StoreUser(arg0 *store.User) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "StoreUser", arg0) @@ -417,13 +418,13 @@ func (m *MockStore) StoreUser(arg0 *store.User) error { return ret0 } -// StoreUser indicates an expected call of StoreUser +// StoreUser indicates an expected call of StoreUser. func (mr *MockStoreMockRecorder) StoreUser(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StoreUser", reflect.TypeOf((*MockStore)(nil).StoreUser), arg0) } -// StoreUserActiveEvents mocks base method +// StoreUserActiveEvents mocks base method. func (m *MockStore) StoreUserActiveEvents(arg0 string, arg1 []string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "StoreUserActiveEvents", arg0, arg1) @@ -431,13 +432,13 @@ func (m *MockStore) StoreUserActiveEvents(arg0 string, arg1 []string) error { return ret0 } -// StoreUserActiveEvents indicates an expected call of StoreUserActiveEvents +// StoreUserActiveEvents indicates an expected call of StoreUserActiveEvents. func (mr *MockStoreMockRecorder) StoreUserActiveEvents(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StoreUserActiveEvents", reflect.TypeOf((*MockStore)(nil).StoreUserActiveEvents), arg0, arg1) } -// StoreUserEvent mocks base method +// StoreUserEvent mocks base method. func (m *MockStore) StoreUserEvent(arg0 string, arg1 *store.Event) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "StoreUserEvent", arg0, arg1) @@ -445,13 +446,13 @@ func (m *MockStore) StoreUserEvent(arg0 string, arg1 *store.Event) error { return ret0 } -// StoreUserEvent indicates an expected call of StoreUserEvent +// StoreUserEvent indicates an expected call of StoreUserEvent. func (mr *MockStoreMockRecorder) StoreUserEvent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StoreUserEvent", reflect.TypeOf((*MockStore)(nil).StoreUserEvent), arg0, arg1) } -// StoreUserInIndex mocks base method +// StoreUserInIndex mocks base method. func (m *MockStore) StoreUserInIndex(arg0 *store.User) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "StoreUserInIndex", arg0) @@ -459,13 +460,13 @@ func (m *MockStore) StoreUserInIndex(arg0 *store.User) error { return ret0 } -// StoreUserInIndex indicates an expected call of StoreUserInIndex +// StoreUserInIndex indicates an expected call of StoreUserInIndex. func (mr *MockStoreMockRecorder) StoreUserInIndex(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StoreUserInIndex", reflect.TypeOf((*MockStore)(nil).StoreUserInIndex), arg0) } -// StoreUserSubscription mocks base method +// StoreUserSubscription mocks base method. func (m *MockStore) StoreUserSubscription(arg0 *store.User, arg1 *store.Subscription) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "StoreUserSubscription", arg0, arg1) @@ -473,13 +474,13 @@ func (m *MockStore) StoreUserSubscription(arg0 *store.User, arg1 *store.Subscrip return ret0 } -// StoreUserSubscription indicates an expected call of StoreUserSubscription +// StoreUserSubscription indicates an expected call of StoreUserSubscription. func (mr *MockStoreMockRecorder) StoreUserSubscription(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StoreUserSubscription", reflect.TypeOf((*MockStore)(nil).StoreUserSubscription), arg0, arg1) } -// StoreUserWelcomePost mocks base method +// StoreUserWelcomePost mocks base method. func (m *MockStore) StoreUserWelcomePost(arg0, arg1 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "StoreUserWelcomePost", arg0, arg1) @@ -487,13 +488,13 @@ func (m *MockStore) StoreUserWelcomePost(arg0, arg1 string) error { return ret0 } -// StoreUserWelcomePost indicates an expected call of StoreUserWelcomePost +// StoreUserWelcomePost indicates an expected call of StoreUserWelcomePost. func (mr *MockStoreMockRecorder) StoreUserWelcomePost(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StoreUserWelcomePost", reflect.TypeOf((*MockStore)(nil).StoreUserWelcomePost), arg0, arg1) } -// VerifyOAuth2State mocks base method +// VerifyOAuth2State mocks base method. func (m *MockStore) VerifyOAuth2State(arg0 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "VerifyOAuth2State", arg0) @@ -501,7 +502,7 @@ func (m *MockStore) VerifyOAuth2State(arg0 string) error { return ret0 } -// VerifyOAuth2State indicates an expected call of VerifyOAuth2State +// VerifyOAuth2State indicates an expected call of VerifyOAuth2State. func (mr *MockStoreMockRecorder) VerifyOAuth2State(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyOAuth2State", reflect.TypeOf((*MockStore)(nil).VerifyOAuth2State), arg0) diff --git a/server/utils/bot/mock_bot/mock_admin.go b/server/utils/bot/mock_bot/mock_admin.go index 150937e3..25219de9 100644 --- a/server/utils/bot/mock_bot/mock_admin.go +++ b/server/utils/bot/mock_bot/mock_admin.go @@ -5,34 +5,35 @@ package mock_bot import ( - gomock "github.com/golang/mock/gomock" reflect "reflect" + + gomock "github.com/golang/mock/gomock" ) -// MockAdmin is a mock of Admin interface +// MockAdmin is a mock of Admin interface. type MockAdmin struct { ctrl *gomock.Controller recorder *MockAdminMockRecorder } -// MockAdminMockRecorder is the mock recorder for MockAdmin +// MockAdminMockRecorder is the mock recorder for MockAdmin. type MockAdminMockRecorder struct { mock *MockAdmin } -// NewMockAdmin creates a new mock instance +// NewMockAdmin creates a new mock instance. func NewMockAdmin(ctrl *gomock.Controller) *MockAdmin { mock := &MockAdmin{ctrl: ctrl} mock.recorder = &MockAdminMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockAdmin) EXPECT() *MockAdminMockRecorder { return m.recorder } -// IsUserAdmin mocks base method +// IsUserAdmin mocks base method. func (m *MockAdmin) IsUserAdmin(arg0 string) bool { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "IsUserAdmin", arg0) @@ -40,7 +41,7 @@ func (m *MockAdmin) IsUserAdmin(arg0 string) bool { return ret0 } -// IsUserAdmin indicates an expected call of IsUserAdmin +// IsUserAdmin indicates an expected call of IsUserAdmin. func (mr *MockAdminMockRecorder) IsUserAdmin(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsUserAdmin", reflect.TypeOf((*MockAdmin)(nil).IsUserAdmin), arg0) diff --git a/server/utils/bot/mock_bot/mock_logger.go b/server/utils/bot/mock_bot/mock_logger.go index 7331a260..da470dc6 100644 --- a/server/utils/bot/mock_bot/mock_logger.go +++ b/server/utils/bot/mock_bot/mock_logger.go @@ -5,35 +5,36 @@ package mock_bot import ( + reflect "reflect" + gomock "github.com/golang/mock/gomock" bot "github.com/mattermost/mattermost-plugin-mscalendar/server/utils/bot" - reflect "reflect" ) -// MockLogger is a mock of Logger interface +// MockLogger is a mock of Logger interface. type MockLogger struct { ctrl *gomock.Controller recorder *MockLoggerMockRecorder } -// MockLoggerMockRecorder is the mock recorder for MockLogger +// MockLoggerMockRecorder is the mock recorder for MockLogger. type MockLoggerMockRecorder struct { mock *MockLogger } -// NewMockLogger creates a new mock instance +// NewMockLogger creates a new mock instance. func NewMockLogger(ctrl *gomock.Controller) *MockLogger { mock := &MockLogger{ctrl: ctrl} mock.recorder = &MockLoggerMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockLogger) EXPECT() *MockLoggerMockRecorder { return m.recorder } -// Debugf mocks base method +// Debugf mocks base method. func (m *MockLogger) Debugf(arg0 string, arg1 ...interface{}) { m.ctrl.T.Helper() varargs := []interface{}{arg0} @@ -43,14 +44,14 @@ func (m *MockLogger) Debugf(arg0 string, arg1 ...interface{}) { m.ctrl.Call(m, "Debugf", varargs...) } -// Debugf indicates an expected call of Debugf +// Debugf indicates an expected call of Debugf. func (mr *MockLoggerMockRecorder) Debugf(arg0 interface{}, arg1 ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{arg0}, arg1...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Debugf", reflect.TypeOf((*MockLogger)(nil).Debugf), varargs...) } -// Errorf mocks base method +// Errorf mocks base method. func (m *MockLogger) Errorf(arg0 string, arg1 ...interface{}) { m.ctrl.T.Helper() varargs := []interface{}{arg0} @@ -60,14 +61,14 @@ func (m *MockLogger) Errorf(arg0 string, arg1 ...interface{}) { m.ctrl.Call(m, "Errorf", varargs...) } -// Errorf indicates an expected call of Errorf +// Errorf indicates an expected call of Errorf. func (mr *MockLoggerMockRecorder) Errorf(arg0 interface{}, arg1 ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{arg0}, arg1...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Errorf", reflect.TypeOf((*MockLogger)(nil).Errorf), varargs...) } -// Infof mocks base method +// Infof mocks base method. func (m *MockLogger) Infof(arg0 string, arg1 ...interface{}) { m.ctrl.T.Helper() varargs := []interface{}{arg0} @@ -77,14 +78,14 @@ func (m *MockLogger) Infof(arg0 string, arg1 ...interface{}) { m.ctrl.Call(m, "Infof", varargs...) } -// Infof indicates an expected call of Infof +// Infof indicates an expected call of Infof. func (mr *MockLoggerMockRecorder) Infof(arg0 interface{}, arg1 ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{arg0}, arg1...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Infof", reflect.TypeOf((*MockLogger)(nil).Infof), varargs...) } -// Timed mocks base method +// Timed mocks base method. func (m *MockLogger) Timed() bot.Logger { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Timed") @@ -92,13 +93,13 @@ func (m *MockLogger) Timed() bot.Logger { return ret0 } -// Timed indicates an expected call of Timed +// Timed indicates an expected call of Timed. func (mr *MockLoggerMockRecorder) Timed() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Timed", reflect.TypeOf((*MockLogger)(nil).Timed)) } -// Warnf mocks base method +// Warnf mocks base method. func (m *MockLogger) Warnf(arg0 string, arg1 ...interface{}) { m.ctrl.T.Helper() varargs := []interface{}{arg0} @@ -108,14 +109,14 @@ func (m *MockLogger) Warnf(arg0 string, arg1 ...interface{}) { m.ctrl.Call(m, "Warnf", varargs...) } -// Warnf indicates an expected call of Warnf +// Warnf indicates an expected call of Warnf. func (mr *MockLoggerMockRecorder) Warnf(arg0 interface{}, arg1 ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{arg0}, arg1...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Warnf", reflect.TypeOf((*MockLogger)(nil).Warnf), varargs...) } -// With mocks base method +// With mocks base method. func (m *MockLogger) With(arg0 bot.LogContext) bot.Logger { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "With", arg0) @@ -123,7 +124,7 @@ func (m *MockLogger) With(arg0 bot.LogContext) bot.Logger { return ret0 } -// With indicates an expected call of With +// With indicates an expected call of With. func (mr *MockLoggerMockRecorder) With(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "With", reflect.TypeOf((*MockLogger)(nil).With), arg0) diff --git a/server/utils/bot/mock_bot/mock_poster.go b/server/utils/bot/mock_bot/mock_poster.go index 2971b383..ace4bb65 100644 --- a/server/utils/bot/mock_bot/mock_poster.go +++ b/server/utils/bot/mock_bot/mock_poster.go @@ -5,35 +5,36 @@ package mock_bot import ( + reflect "reflect" + gomock "github.com/golang/mock/gomock" model "github.com/mattermost/mattermost-server/v5/model" - reflect "reflect" ) -// MockPoster is a mock of Poster interface +// MockPoster is a mock of Poster interface. type MockPoster struct { ctrl *gomock.Controller recorder *MockPosterMockRecorder } -// MockPosterMockRecorder is the mock recorder for MockPoster +// MockPosterMockRecorder is the mock recorder for MockPoster. type MockPosterMockRecorder struct { mock *MockPoster } -// NewMockPoster creates a new mock instance +// NewMockPoster creates a new mock instance. func NewMockPoster(ctrl *gomock.Controller) *MockPoster { mock := &MockPoster{ctrl: ctrl} mock.recorder = &MockPosterMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockPoster) EXPECT() *MockPosterMockRecorder { return m.recorder } -// DM mocks base method +// DM mocks base method. func (m *MockPoster) DM(arg0, arg1 string, arg2 ...interface{}) (string, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} @@ -46,14 +47,14 @@ func (m *MockPoster) DM(arg0, arg1 string, arg2 ...interface{}) (string, error) return ret0, ret1 } -// DM indicates an expected call of DM +// DM indicates an expected call of DM. func (mr *MockPosterMockRecorder) DM(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{arg0, arg1}, arg2...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DM", reflect.TypeOf((*MockPoster)(nil).DM), varargs...) } -// DMUpdate mocks base method +// DMUpdate mocks base method. func (m *MockPoster) DMUpdate(arg0, arg1 string, arg2 ...interface{}) error { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1} @@ -65,14 +66,14 @@ func (m *MockPoster) DMUpdate(arg0, arg1 string, arg2 ...interface{}) error { return ret0 } -// DMUpdate indicates an expected call of DMUpdate +// DMUpdate indicates an expected call of DMUpdate. func (mr *MockPosterMockRecorder) DMUpdate(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{arg0, arg1}, arg2...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DMUpdate", reflect.TypeOf((*MockPoster)(nil).DMUpdate), varargs...) } -// DMWithAttachments mocks base method +// DMWithAttachments mocks base method. func (m *MockPoster) DMWithAttachments(arg0 string, arg1 ...*model.SlackAttachment) (string, error) { m.ctrl.T.Helper() varargs := []interface{}{arg0} @@ -85,14 +86,14 @@ func (m *MockPoster) DMWithAttachments(arg0 string, arg1 ...*model.SlackAttachme return ret0, ret1 } -// DMWithAttachments indicates an expected call of DMWithAttachments +// DMWithAttachments indicates an expected call of DMWithAttachments. func (mr *MockPosterMockRecorder) DMWithAttachments(arg0 interface{}, arg1 ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{arg0}, arg1...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DMWithAttachments", reflect.TypeOf((*MockPoster)(nil).DMWithAttachments), varargs...) } -// DeletePost mocks base method +// DeletePost mocks base method. func (m *MockPoster) DeletePost(arg0 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeletePost", arg0) @@ -100,13 +101,13 @@ func (m *MockPoster) DeletePost(arg0 string) error { return ret0 } -// DeletePost indicates an expected call of DeletePost +// DeletePost indicates an expected call of DeletePost. func (mr *MockPosterMockRecorder) DeletePost(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePost", reflect.TypeOf((*MockPoster)(nil).DeletePost), arg0) } -// Ephemeral mocks base method +// Ephemeral mocks base method. func (m *MockPoster) Ephemeral(arg0, arg1, arg2 string, arg3 ...interface{}) { m.ctrl.T.Helper() varargs := []interface{}{arg0, arg1, arg2} @@ -116,14 +117,14 @@ func (m *MockPoster) Ephemeral(arg0, arg1, arg2 string, arg3 ...interface{}) { m.ctrl.Call(m, "Ephemeral", varargs...) } -// Ephemeral indicates an expected call of Ephemeral +// Ephemeral indicates an expected call of Ephemeral. func (mr *MockPosterMockRecorder) Ephemeral(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Ephemeral", reflect.TypeOf((*MockPoster)(nil).Ephemeral), varargs...) } -// UpdatePost mocks base method +// UpdatePost mocks base method. func (m *MockPoster) UpdatePost(arg0 *model.Post) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdatePost", arg0) @@ -131,7 +132,7 @@ func (m *MockPoster) UpdatePost(arg0 *model.Post) error { return ret0 } -// UpdatePost indicates an expected call of UpdatePost +// UpdatePost indicates an expected call of UpdatePost. func (mr *MockPosterMockRecorder) UpdatePost(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePost", reflect.TypeOf((*MockPoster)(nil).UpdatePost), arg0)