diff options
Diffstat (limited to 'store/storetest/mocks')
-rw-r--r-- | store/storetest/mocks/ChannelStore.go | 52 | ||||
-rw-r--r-- | store/storetest/mocks/SqlStore.go | 14 | ||||
-rw-r--r-- | store/storetest/mocks/SqlSupplier.go | 29 |
3 files changed, 95 insertions, 0 deletions
diff --git a/store/storetest/mocks/ChannelStore.go b/store/storetest/mocks/ChannelStore.go index 63f6bc6a9..c187aae6b 100644 --- a/store/storetest/mocks/ChannelStore.go +++ b/store/storetest/mocks/ChannelStore.go @@ -130,6 +130,30 @@ func (_m *ChannelStore) Delete(channelId string, time int64) store.StoreChannel return r0 } +// DisableExperimentalPublicChannelsMaterialization provides a mock function with given fields: +func (_m *ChannelStore) DisableExperimentalPublicChannelsMaterialization() { + _m.Called() +} + +// DropPublicChannels provides a mock function with given fields: +func (_m *ChannelStore) DropPublicChannels() error { + ret := _m.Called() + + var r0 error + if rf, ok := ret.Get(0).(func() error); ok { + r0 = rf() + } else { + r0 = ret.Error(0) + } + + return r0 +} + +// EnableExperimentalPublicChannelsMaterialization provides a mock function with given fields: +func (_m *ChannelStore) EnableExperimentalPublicChannelsMaterialization() { + _m.Called() +} + // Get provides a mock function with given fields: id, allowFromCache func (_m *ChannelStore) Get(id string, allowFromCache bool) store.StoreChannel { ret := _m.Called(id, allowFromCache) @@ -601,6 +625,20 @@ func (_m *ChannelStore) InvalidateMemberCount(channelId string) { _m.Called(channelId) } +// IsExperimentalPublicChannelsMaterializationEnabled provides a mock function with given fields: +func (_m *ChannelStore) IsExperimentalPublicChannelsMaterializationEnabled() bool { + ret := _m.Called() + + var r0 bool + if rf, ok := ret.Get(0).(func() bool); ok { + r0 = rf() + } else { + r0 = ret.Get(0).(bool) + } + + return r0 +} + // IsUserInChannelUseCache provides a mock function with given fields: userId, channelId func (_m *ChannelStore) IsUserInChannelUseCache(userId string, channelId string) bool { ret := _m.Called(userId, channelId) @@ -631,6 +669,20 @@ func (_m *ChannelStore) MigrateChannelMembers(fromChannelId string, fromUserId s return r0 } +// MigratePublicChannels provides a mock function with given fields: +func (_m *ChannelStore) MigratePublicChannels() error { + ret := _m.Called() + + var r0 error + if rf, ok := ret.Get(0).(func() error); ok { + r0 = rf() + } else { + r0 = ret.Error(0) + } + + return r0 +} + // PermanentDelete provides a mock function with given fields: channelId func (_m *ChannelStore) PermanentDelete(channelId string) store.StoreChannel { ret := _m.Called(channelId) diff --git a/store/storetest/mocks/SqlStore.go b/store/storetest/mocks/SqlStore.go index a93db78c9..38cdc0a1b 100644 --- a/store/storetest/mocks/SqlStore.go +++ b/store/storetest/mocks/SqlStore.go @@ -241,6 +241,20 @@ func (_m *SqlStore) DoesTableExist(tablename string) bool { return r0 } +// DoesTriggerExist provides a mock function with given fields: triggerName +func (_m *SqlStore) DoesTriggerExist(triggerName string) bool { + ret := _m.Called(triggerName) + + var r0 bool + if rf, ok := ret.Get(0).(func(string) bool); ok { + r0 = rf(triggerName) + } else { + r0 = ret.Get(0).(bool) + } + + return r0 +} + // DriverName provides a mock function with given fields: func (_m *SqlStore) DriverName() string { ret := _m.Called() diff --git a/store/storetest/mocks/SqlSupplier.go b/store/storetest/mocks/SqlSupplier.go new file mode 100644 index 000000000..4a844524d --- /dev/null +++ b/store/storetest/mocks/SqlSupplier.go @@ -0,0 +1,29 @@ +// Code generated by mockery v1.0.0. DO NOT EDIT. + +// Regenerate this file using `make store-mocks`. + +package mocks + +import gorp "github.com/mattermost/gorp" +import mock "github.com/stretchr/testify/mock" + +// SqlSupplier is an autogenerated mock type for the SqlSupplier type +type SqlSupplier struct { + mock.Mock +} + +// GetMaster provides a mock function with given fields: +func (_m *SqlSupplier) GetMaster() *gorp.DbMap { + ret := _m.Called() + + var r0 *gorp.DbMap + if rf, ok := ret.Get(0).(func() *gorp.DbMap); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*gorp.DbMap) + } + } + + return r0 +} |