mocks

package
v0.0.0-...-501be23 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockIChatStorer

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

MockIChatStorer is a mock of IChatStorer interface.

func NewMockIChatStorer

func NewMockIChatStorer(ctrl *gomock.Controller) *MockIChatStorer

NewMockIChatStorer creates a new mock instance.

func (*MockIChatStorer) Begin

func (m *MockIChatStorer) Begin() (*sql.Tx, error)

Begin mocks base method.

func (*MockIChatStorer) Create

func (m *MockIChatStorer) Create(dto models.ChatDTO) (*models.Chat, error)

Create mocks base method.

func (*MockIChatStorer) CreateInTx

func (m *MockIChatStorer) CreateInTx(tx *sql.Tx, dto models.ChatDTO) (*models.Chat, error)

CreateInTx mocks base method.

func (*MockIChatStorer) Delete

func (m *MockIChatStorer) Delete(id int) (*models.Chat, error)

Delete mocks base method.

func (*MockIChatStorer) EXPECT

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

func (*MockIChatStorer) GetOne

func (m *MockIChatStorer) GetOne(id int) (*models.Chat, error)

GetOne mocks base method.

func (*MockIChatStorer) GetUserChats

func (m *MockIChatStorer) GetUserChats(userId int) ([]models.Chat, error)

GetUserChats mocks base method.

func (*MockIChatStorer) Update

func (m *MockIChatStorer) Update(chat models.Chat) (*models.Chat, error)

Update mocks base method.

type MockIChatStorerMockRecorder

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

MockIChatStorerMockRecorder is the mock recorder for MockIChatStorer.

func (*MockIChatStorerMockRecorder) Begin

Begin indicates an expected call of Begin.

func (*MockIChatStorerMockRecorder) Create

func (mr *MockIChatStorerMockRecorder) Create(dto interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockIChatStorerMockRecorder) CreateInTx

func (mr *MockIChatStorerMockRecorder) CreateInTx(tx, dto interface{}) *gomock.Call

CreateInTx indicates an expected call of CreateInTx.

func (*MockIChatStorerMockRecorder) Delete

func (mr *MockIChatStorerMockRecorder) Delete(id interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockIChatStorerMockRecorder) GetOne

func (mr *MockIChatStorerMockRecorder) GetOne(id interface{}) *gomock.Call

GetOne indicates an expected call of GetOne.

func (*MockIChatStorerMockRecorder) GetUserChats

func (mr *MockIChatStorerMockRecorder) GetUserChats(userId interface{}) *gomock.Call

GetUserChats indicates an expected call of GetUserChats.

func (*MockIChatStorerMockRecorder) Update

func (mr *MockIChatStorerMockRecorder) Update(chat interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockIMessageStorer

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

MockIMessageStorer is a mock of IMessageStorer interface.

func NewMockIMessageStorer

func NewMockIMessageStorer(ctrl *gomock.Controller) *MockIMessageStorer

NewMockIMessageStorer creates a new mock instance.

func (*MockIMessageStorer) Create

Create mocks base method.

func (*MockIMessageStorer) Delete

func (m *MockIMessageStorer) Delete(id int) (*models.Message, error)

Delete mocks base method.

func (*MockIMessageStorer) DeleteAll

func (m *MockIMessageStorer) DeleteAll(chatId int) (sql.Result, error)

DeleteAll mocks base method.

func (*MockIMessageStorer) EXPECT

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

func (*MockIMessageStorer) GetChatMessages

func (m *MockIMessageStorer) GetChatMessages(chatId, page int) ([]models.Message, error)

GetChatMessages mocks base method.

func (*MockIMessageStorer) GetOne

func (m *MockIMessageStorer) GetOne(id int) (*models.Message, error)

GetOne mocks base method.

func (*MockIMessageStorer) Update

func (m *MockIMessageStorer) Update(message models.Message) (*models.Message, error)

Update mocks base method.

type MockIMessageStorerMockRecorder

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

MockIMessageStorerMockRecorder is the mock recorder for MockIMessageStorer.

func (*MockIMessageStorerMockRecorder) Create

func (mr *MockIMessageStorerMockRecorder) Create(tdo interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockIMessageStorerMockRecorder) Delete

func (mr *MockIMessageStorerMockRecorder) Delete(id interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockIMessageStorerMockRecorder) DeleteAll

func (mr *MockIMessageStorerMockRecorder) DeleteAll(chatId interface{}) *gomock.Call

DeleteAll indicates an expected call of DeleteAll.

func (*MockIMessageStorerMockRecorder) GetChatMessages

func (mr *MockIMessageStorerMockRecorder) GetChatMessages(chatId, page interface{}) *gomock.Call

GetChatMessages indicates an expected call of GetChatMessages.

func (*MockIMessageStorerMockRecorder) GetOne

func (mr *MockIMessageStorerMockRecorder) GetOne(id interface{}) *gomock.Call

GetOne indicates an expected call of GetOne.

func (*MockIMessageStorerMockRecorder) Update

func (mr *MockIMessageStorerMockRecorder) Update(message interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockIParticipantStorer

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

MockIParticipantStorer is a mock of IParticipantStorer interface.

func NewMockIParticipantStorer

func NewMockIParticipantStorer(ctrl *gomock.Controller) *MockIParticipantStorer

NewMockIParticipantStorer creates a new mock instance.

func (*MockIParticipantStorer) Create

func (m *MockIParticipantStorer) Create(participant models.Participant) (*models.Participant, error)

Create mocks base method.

func (*MockIParticipantStorer) CreateInTx

func (m *MockIParticipantStorer) CreateInTx(tx *sql.Tx, participant models.Participant) (*models.Participant, error)

CreateInTx mocks base method.

func (*MockIParticipantStorer) Delete

func (m *MockIParticipantStorer) Delete(participant models.Participant) (*models.Participant, error)

Delete mocks base method.

func (*MockIParticipantStorer) DeleteAll

func (m *MockIParticipantStorer) DeleteAll(chatId int) (sql.Result, error)

DeleteAll mocks base method.

func (*MockIParticipantStorer) EXPECT

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

func (*MockIParticipantStorer) GetChatUsers

func (m *MockIParticipantStorer) GetChatUsers(chatId int) ([]models.ChatUser, error)

GetChatUsers mocks base method.

func (*MockIParticipantStorer) GetOne

func (m *MockIParticipantStorer) GetOne(userId, chatId int) (*models.Participant, error)

GetOne mocks base method.

func (*MockIParticipantStorer) Update

func (m *MockIParticipantStorer) Update(participant models.Participant) (*models.Participant, error)

Update mocks base method.

type MockIParticipantStorerMockRecorder

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

MockIParticipantStorerMockRecorder is the mock recorder for MockIParticipantStorer.

func (*MockIParticipantStorerMockRecorder) Create

func (mr *MockIParticipantStorerMockRecorder) Create(participant interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockIParticipantStorerMockRecorder) CreateInTx

func (mr *MockIParticipantStorerMockRecorder) CreateInTx(tx, participant interface{}) *gomock.Call

CreateInTx indicates an expected call of CreateInTx.

func (*MockIParticipantStorerMockRecorder) Delete

func (mr *MockIParticipantStorerMockRecorder) Delete(participant interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockIParticipantStorerMockRecorder) DeleteAll

func (mr *MockIParticipantStorerMockRecorder) DeleteAll(chatId interface{}) *gomock.Call

DeleteAll indicates an expected call of DeleteAll.

func (*MockIParticipantStorerMockRecorder) GetChatUsers

func (mr *MockIParticipantStorerMockRecorder) GetChatUsers(chatId interface{}) *gomock.Call

GetChatUsers indicates an expected call of GetChatUsers.

func (*MockIParticipantStorerMockRecorder) GetOne

func (mr *MockIParticipantStorerMockRecorder) GetOne(userId, chatId interface{}) *gomock.Call

GetOne indicates an expected call of GetOne.

func (*MockIParticipantStorerMockRecorder) Update

func (mr *MockIParticipantStorerMockRecorder) Update(participant interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockIUserStorer

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

MockIUserStorer is a mock of IUserStorer interface.

func NewMockIUserStorer

func NewMockIUserStorer(ctrl *gomock.Controller) *MockIUserStorer

NewMockIUserStorer creates a new mock instance.

func (*MockIUserStorer) Delete

func (m *MockIUserStorer) Delete(id int) (*models.User, error)

Delete mocks base method.

func (*MockIUserStorer) EXPECT

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

func (*MockIUserStorer) GetOne

func (m *MockIUserStorer) GetOne(id int) (*models.User, error)

GetOne mocks base method.

func (*MockIUserStorer) Update

func (m *MockIUserStorer) Update(user models.User) (*models.User, error)

Update mocks base method.

type MockIUserStorerMockRecorder

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

MockIUserStorerMockRecorder is the mock recorder for MockIUserStorer.

func (*MockIUserStorerMockRecorder) Delete

func (mr *MockIUserStorerMockRecorder) Delete(id interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockIUserStorerMockRecorder) GetOne

func (mr *MockIUserStorerMockRecorder) GetOne(id interface{}) *gomock.Call

GetOne indicates an expected call of GetOne.

func (*MockIUserStorerMockRecorder) Update

func (mr *MockIUserStorerMockRecorder) Update(user interface{}) *gomock.Call

Update indicates an expected call of Update.

Jump to

Keyboard shortcuts

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