mock_types

package
v1.9.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mock_types is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDatabase

type MockDatabase struct {
	// contains filtered or unexported fields
}

MockDatabase is a mock of Database interface.

func NewMockDatabase

func NewMockDatabase(ctrl *gomock.Controller) *MockDatabase

NewMockDatabase creates a new mock instance.

func (*MockDatabase) AddChannel

func (m *MockDatabase) AddChannel(arg0, arg1 string, arg2 roles.Role) (*database.Channel, error)

AddChannel mocks base method.

func (*MockDatabase) AddEvent

func (m *MockDatabase) AddEvent(arg0 *database.Event) (*database.Event, error)

AddEvent mocks base method.

func (*MockDatabase) AddMessage

func (m *MockDatabase) AddMessage(arg0 *database.Message) (*database.Message, error)

AddMessage mocks base method.

func (*MockDatabase) AddMessageFromMatrix

func (m *MockDatabase) AddMessageFromMatrix(arg0 string, arg1 int64, arg2 *event.MessageEventContent, arg3 *database.Reminder, arg4 database.MessageType, arg5 *database.Channel) (*database.Message, error)

AddMessageFromMatrix mocks base method.

func (*MockDatabase) AddOrUpdateThirdPartyResourceReminder

func (m *MockDatabase) AddOrUpdateThirdPartyResourceReminder(arg0 time.Time, arg1 string, arg2, arg3 uint, arg4 string) (*database.Reminder, error)

AddOrUpdateThirdPartyResourceReminder mocks base method.

func (*MockDatabase) AddReminder

func (m *MockDatabase) AddReminder(arg0 time.Time, arg1 string, arg2 bool, arg3 uint64, arg4 *database.Channel) (*database.Reminder, error)

AddReminder mocks base method.

func (*MockDatabase) AddThirdPartyResource

func (m *MockDatabase) AddThirdPartyResource(arg0 *database.ThirdPartyResource) (*database.ThirdPartyResource, error)

AddThirdPartyResource mocks base method.

func (*MockDatabase) AddUserToBlocklist

func (m *MockDatabase) AddUserToBlocklist(arg0, arg1 string) error

AddUserToBlocklist mocks base method.

func (*MockDatabase) ChannelCount

func (m *MockDatabase) ChannelCount() (int64, error)

ChannelCount mocks base method.

func (*MockDatabase) ChannelSaveChanges

func (m *MockDatabase) ChannelSaveChanges(arg0 *database.Channel) error

ChannelSaveChanges mocks base method.

func (*MockDatabase) CleanAdminChannels

func (m *MockDatabase) CleanAdminChannels(arg0 []*database.Channel) error

CleanAdminChannels mocks base method.

func (*MockDatabase) DeleteChannel

func (m *MockDatabase) DeleteChannel(arg0 *database.Channel) error

DeleteChannel mocks base method.

func (*MockDatabase) DeleteChannelsFromUser

func (m *MockDatabase) DeleteChannelsFromUser(arg0 string) error

DeleteChannelsFromUser mocks base method.

func (*MockDatabase) DeleteReminder

func (m *MockDatabase) DeleteReminder(arg0 uint) (*database.Reminder, error)

DeleteReminder mocks base method.

func (*MockDatabase) DeleteThirdPartyResource

func (m *MockDatabase) DeleteThirdPartyResource(arg0 uint) error

DeleteThirdPartyResource mocks base method.

func (*MockDatabase) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockDatabase) GenerateNewCalendarSecret

func (m *MockDatabase) GenerateNewCalendarSecret(arg0 *database.Channel) error

GenerateNewCalendarSecret mocks base method.

func (*MockDatabase) GetBlockedUserList

func (m *MockDatabase) GetBlockedUserList() ([]database.Blocklist, error)

GetBlockedUserList mocks base method.

func (*MockDatabase) GetChannel

func (m *MockDatabase) GetChannel(arg0 uint) (*database.Channel, error)

GetChannel mocks base method.

func (*MockDatabase) GetChannelByUserAndChannelIdentifier

func (m *MockDatabase) GetChannelByUserAndChannelIdentifier(arg0, arg1 string) (*database.Channel, error)

GetChannelByUserAndChannelIdentifier mocks base method.

func (*MockDatabase) GetChannelByUserIdentifier

func (m *MockDatabase) GetChannelByUserIdentifier(arg0 string) (*database.Channel, error)

GetChannelByUserIdentifier mocks base method.

func (*MockDatabase) GetChannelList

func (m *MockDatabase) GetChannelList() ([]database.Channel, error)

GetChannelList mocks base method.

func (*MockDatabase) GetChannelsByChannelIdentifier

func (m *MockDatabase) GetChannelsByChannelIdentifier(arg0 string) ([]database.Channel, error)

GetChannelsByChannelIdentifier mocks base method.

func (*MockDatabase) GetChannelsByUserIdentifier

func (m *MockDatabase) GetChannelsByUserIdentifier(arg0 string) ([]database.Channel, error)

GetChannelsByUserIdentifier mocks base method.

func (*MockDatabase) GetLastMessageByTypeForReminder

func (m *MockDatabase) GetLastMessageByTypeForReminder(arg0 database.MessageType, arg1 uint) (*database.Message, error)

GetLastMessageByTypeForReminder mocks base method.

func (*MockDatabase) GetMessageByExternalID

func (m *MockDatabase) GetMessageByExternalID(arg0 string) (*database.Message, error)

GetMessageByExternalID mocks base method.

func (*MockDatabase) GetMessagesByReminderID

func (m *MockDatabase) GetMessagesByReminderID(arg0 uint) ([]*database.Message, error)

GetMessagesByReminderID mocks base method.

func (*MockDatabase) GetPendingReminders

func (m *MockDatabase) GetPendingReminders(arg0 *database.Channel) ([]database.Reminder, error)

GetPendingReminders mocks base method.

func (*MockDatabase) GetReminderForChannelIDByID

func (m *MockDatabase) GetReminderForChannelIDByID(arg0 string, arg1 int) (*database.Reminder, error)

GetReminderForChannelIDByID mocks base method.

func (*MockDatabase) GetThirdPartyResources

func (m *MockDatabase) GetThirdPartyResources(arg0 database.ThirdPartyResourceType) ([]database.ThirdPartyResource, error)

GetThirdPartyResources mocks base method.

func (*MockDatabase) GetThirdPartyResourcesByChannel

func (m *MockDatabase) GetThirdPartyResourcesByChannel(arg0 uint) ([]database.ThirdPartyResource, error)

GetThirdPartyResourcesByChannel mocks base method.

func (*MockDatabase) IsEventKnown

func (m *MockDatabase) IsEventKnown(arg0 string) (bool, error)

IsEventKnown mocks base method.

func (*MockDatabase) IsUserBlocked

func (m *MockDatabase) IsUserBlocked(arg0 string) (bool, error)

IsUserBlocked mocks base method.

func (*MockDatabase) RemoveUserFromBlocklist

func (m *MockDatabase) RemoveUserFromBlocklist(arg0 string) error

RemoveUserFromBlocklist mocks base method.

func (*MockDatabase) SQLDB

func (m *MockDatabase) SQLDB() (*sql.DB, error)

SQLDB mocks base method.

func (*MockDatabase) UpdateChannel

func (m *MockDatabase) UpdateChannel(arg0 uint, arg1 string, arg2 *uint, arg3 *roles.Role) (*database.Channel, error)

UpdateChannel mocks base method.

func (*MockDatabase) UpdateReminder

func (m *MockDatabase) UpdateReminder(arg0 uint, arg1 time.Time, arg2, arg3 uint64) (*database.Reminder, error)

UpdateReminder mocks base method.

type MockDatabaseMockRecorder

type MockDatabaseMockRecorder struct {
	// contains filtered or unexported fields
}

MockDatabaseMockRecorder is the mock recorder for MockDatabase.

func (*MockDatabaseMockRecorder) AddChannel

func (mr *MockDatabaseMockRecorder) AddChannel(arg0, arg1, arg2 interface{}) *gomock.Call

AddChannel indicates an expected call of AddChannel.

func (*MockDatabaseMockRecorder) AddEvent

func (mr *MockDatabaseMockRecorder) AddEvent(arg0 interface{}) *gomock.Call

AddEvent indicates an expected call of AddEvent.

func (*MockDatabaseMockRecorder) AddMessage

func (mr *MockDatabaseMockRecorder) AddMessage(arg0 interface{}) *gomock.Call

AddMessage indicates an expected call of AddMessage.

func (*MockDatabaseMockRecorder) AddMessageFromMatrix

func (mr *MockDatabaseMockRecorder) AddMessageFromMatrix(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call

AddMessageFromMatrix indicates an expected call of AddMessageFromMatrix.

func (*MockDatabaseMockRecorder) AddOrUpdateThirdPartyResourceReminder

func (mr *MockDatabaseMockRecorder) AddOrUpdateThirdPartyResourceReminder(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

AddOrUpdateThirdPartyResourceReminder indicates an expected call of AddOrUpdateThirdPartyResourceReminder.

func (*MockDatabaseMockRecorder) AddReminder

func (mr *MockDatabaseMockRecorder) AddReminder(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

AddReminder indicates an expected call of AddReminder.

func (*MockDatabaseMockRecorder) AddThirdPartyResource

func (mr *MockDatabaseMockRecorder) AddThirdPartyResource(arg0 interface{}) *gomock.Call

AddThirdPartyResource indicates an expected call of AddThirdPartyResource.

func (*MockDatabaseMockRecorder) AddUserToBlocklist

func (mr *MockDatabaseMockRecorder) AddUserToBlocklist(arg0, arg1 interface{}) *gomock.Call

AddUserToBlocklist indicates an expected call of AddUserToBlocklist.

func (*MockDatabaseMockRecorder) ChannelCount

func (mr *MockDatabaseMockRecorder) ChannelCount() *gomock.Call

ChannelCount indicates an expected call of ChannelCount.

func (*MockDatabaseMockRecorder) ChannelSaveChanges

func (mr *MockDatabaseMockRecorder) ChannelSaveChanges(arg0 interface{}) *gomock.Call

ChannelSaveChanges indicates an expected call of ChannelSaveChanges.

func (*MockDatabaseMockRecorder) CleanAdminChannels

func (mr *MockDatabaseMockRecorder) CleanAdminChannels(arg0 interface{}) *gomock.Call

CleanAdminChannels indicates an expected call of CleanAdminChannels.

func (*MockDatabaseMockRecorder) DeleteChannel

func (mr *MockDatabaseMockRecorder) DeleteChannel(arg0 interface{}) *gomock.Call

DeleteChannel indicates an expected call of DeleteChannel.

func (*MockDatabaseMockRecorder) DeleteChannelsFromUser

func (mr *MockDatabaseMockRecorder) DeleteChannelsFromUser(arg0 interface{}) *gomock.Call

DeleteChannelsFromUser indicates an expected call of DeleteChannelsFromUser.

func (*MockDatabaseMockRecorder) DeleteReminder

func (mr *MockDatabaseMockRecorder) DeleteReminder(arg0 interface{}) *gomock.Call

DeleteReminder indicates an expected call of DeleteReminder.

func (*MockDatabaseMockRecorder) DeleteThirdPartyResource

func (mr *MockDatabaseMockRecorder) DeleteThirdPartyResource(arg0 interface{}) *gomock.Call

DeleteThirdPartyResource indicates an expected call of DeleteThirdPartyResource.

func (*MockDatabaseMockRecorder) GenerateNewCalendarSecret

func (mr *MockDatabaseMockRecorder) GenerateNewCalendarSecret(arg0 interface{}) *gomock.Call

GenerateNewCalendarSecret indicates an expected call of GenerateNewCalendarSecret.

func (*MockDatabaseMockRecorder) GetBlockedUserList

func (mr *MockDatabaseMockRecorder) GetBlockedUserList() *gomock.Call

GetBlockedUserList indicates an expected call of GetBlockedUserList.

func (*MockDatabaseMockRecorder) GetChannel

func (mr *MockDatabaseMockRecorder) GetChannel(arg0 interface{}) *gomock.Call

GetChannel indicates an expected call of GetChannel.

func (*MockDatabaseMockRecorder) GetChannelByUserAndChannelIdentifier

func (mr *MockDatabaseMockRecorder) GetChannelByUserAndChannelIdentifier(arg0, arg1 interface{}) *gomock.Call

GetChannelByUserAndChannelIdentifier indicates an expected call of GetChannelByUserAndChannelIdentifier.

func (*MockDatabaseMockRecorder) GetChannelByUserIdentifier

func (mr *MockDatabaseMockRecorder) GetChannelByUserIdentifier(arg0 interface{}) *gomock.Call

GetChannelByUserIdentifier indicates an expected call of GetChannelByUserIdentifier.

func (*MockDatabaseMockRecorder) GetChannelList

func (mr *MockDatabaseMockRecorder) GetChannelList() *gomock.Call

GetChannelList indicates an expected call of GetChannelList.

func (*MockDatabaseMockRecorder) GetChannelsByChannelIdentifier

func (mr *MockDatabaseMockRecorder) GetChannelsByChannelIdentifier(arg0 interface{}) *gomock.Call

GetChannelsByChannelIdentifier indicates an expected call of GetChannelsByChannelIdentifier.

func (*MockDatabaseMockRecorder) GetChannelsByUserIdentifier

func (mr *MockDatabaseMockRecorder) GetChannelsByUserIdentifier(arg0 interface{}) *gomock.Call

GetChannelsByUserIdentifier indicates an expected call of GetChannelsByUserIdentifier.

func (*MockDatabaseMockRecorder) GetLastMessageByTypeForReminder

func (mr *MockDatabaseMockRecorder) GetLastMessageByTypeForReminder(arg0, arg1 interface{}) *gomock.Call

GetLastMessageByTypeForReminder indicates an expected call of GetLastMessageByTypeForReminder.

func (*MockDatabaseMockRecorder) GetMessageByExternalID

func (mr *MockDatabaseMockRecorder) GetMessageByExternalID(arg0 interface{}) *gomock.Call

GetMessageByExternalID indicates an expected call of GetMessageByExternalID.

func (*MockDatabaseMockRecorder) GetMessagesByReminderID

func (mr *MockDatabaseMockRecorder) GetMessagesByReminderID(arg0 interface{}) *gomock.Call

GetMessagesByReminderID indicates an expected call of GetMessagesByReminderID.

func (*MockDatabaseMockRecorder) GetPendingReminders

func (mr *MockDatabaseMockRecorder) GetPendingReminders(arg0 interface{}) *gomock.Call

GetPendingReminders indicates an expected call of GetPendingReminders.

func (*MockDatabaseMockRecorder) GetReminderForChannelIDByID

func (mr *MockDatabaseMockRecorder) GetReminderForChannelIDByID(arg0, arg1 interface{}) *gomock.Call

GetReminderForChannelIDByID indicates an expected call of GetReminderForChannelIDByID.

func (*MockDatabaseMockRecorder) GetThirdPartyResources

func (mr *MockDatabaseMockRecorder) GetThirdPartyResources(arg0 interface{}) *gomock.Call

GetThirdPartyResources indicates an expected call of GetThirdPartyResources.

func (*MockDatabaseMockRecorder) GetThirdPartyResourcesByChannel

func (mr *MockDatabaseMockRecorder) GetThirdPartyResourcesByChannel(arg0 interface{}) *gomock.Call

GetThirdPartyResourcesByChannel indicates an expected call of GetThirdPartyResourcesByChannel.

func (*MockDatabaseMockRecorder) IsEventKnown

func (mr *MockDatabaseMockRecorder) IsEventKnown(arg0 interface{}) *gomock.Call

IsEventKnown indicates an expected call of IsEventKnown.

func (*MockDatabaseMockRecorder) IsUserBlocked

func (mr *MockDatabaseMockRecorder) IsUserBlocked(arg0 interface{}) *gomock.Call

IsUserBlocked indicates an expected call of IsUserBlocked.

func (*MockDatabaseMockRecorder) RemoveUserFromBlocklist

func (mr *MockDatabaseMockRecorder) RemoveUserFromBlocklist(arg0 interface{}) *gomock.Call

RemoveUserFromBlocklist indicates an expected call of RemoveUserFromBlocklist.

func (*MockDatabaseMockRecorder) SQLDB

func (mr *MockDatabaseMockRecorder) SQLDB() *gomock.Call

SQLDB indicates an expected call of SQLDB.

func (*MockDatabaseMockRecorder) UpdateChannel

func (mr *MockDatabaseMockRecorder) UpdateChannel(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

UpdateChannel indicates an expected call of UpdateChannel.

func (*MockDatabaseMockRecorder) UpdateReminder

func (mr *MockDatabaseMockRecorder) UpdateReminder(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

UpdateReminder indicates an expected call of UpdateReminder.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL