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 MockIChatService

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

MockIChatService is a mock of IChatService interface.

func NewMockIChatService

func NewMockIChatService(ctrl *gomock.Controller) *MockIChatService

NewMockIChatService creates a new mock instance.

func (*MockIChatService) Create

func (m *MockIChatService) Create(userId int, chat models.ChatFromRequest) (*models.Chat, utils.HttpError)

Create mocks base method.

func (*MockIChatService) Delete

func (m *MockIChatService) Delete(userId, chatId int) (*models.Chat, utils.HttpError)

Delete mocks base method.

func (*MockIChatService) EXPECT

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

func (*MockIChatService) GetOne

func (m *MockIChatService) GetOne(userId, chatId int) (*models.Chat, utils.HttpError)

GetOne mocks base method.

func (*MockIChatService) GetUserChats

func (m *MockIChatService) GetUserChats(userId int) ([]models.Chat, utils.HttpError)

GetUserChats mocks base method.

func (*MockIChatService) Update

func (m *MockIChatService) Update(userId int, chat models.Chat) (*models.Chat, utils.HttpError)

Update mocks base method.

type MockIChatServiceMockRecorder

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

MockIChatServiceMockRecorder is the mock recorder for MockIChatService.

func (*MockIChatServiceMockRecorder) Create

func (mr *MockIChatServiceMockRecorder) Create(userId, chat interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockIChatServiceMockRecorder) Delete

func (mr *MockIChatServiceMockRecorder) Delete(userId, chatId interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockIChatServiceMockRecorder) GetOne

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

GetOne indicates an expected call of GetOne.

func (*MockIChatServiceMockRecorder) GetUserChats

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

GetUserChats indicates an expected call of GetUserChats.

func (*MockIChatServiceMockRecorder) Update

func (mr *MockIChatServiceMockRecorder) Update(userId, chat interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockIMessageService

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

MockIMessageService is a mock of IMessageService interface.

func NewMockIMessageService

func NewMockIMessageService(ctrl *gomock.Controller) *MockIMessageService

NewMockIMessageService creates a new mock instance.

func (*MockIMessageService) Create

func (m *MockIMessageService) Create(userId int, MessageTDO models.MessageFromRequest) (*models.Message, utils.HttpError)

Create mocks base method.

func (*MockIMessageService) Delete

func (m *MockIMessageService) Delete(userId int, message models.Message) (*models.Message, utils.HttpError)

Delete mocks base method.

func (*MockIMessageService) EXPECT

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

func (*MockIMessageService) GetChatMessages

func (m *MockIMessageService) GetChatMessages(userId, chatId, page int) ([]models.Message, utils.HttpError)

GetChatMessages mocks base method.

func (*MockIMessageService) GetOne

func (m *MockIMessageService) GetOne(userId, messageId int) (*models.Message, utils.HttpError)

GetOne mocks base method.

func (*MockIMessageService) Update

func (m *MockIMessageService) Update(userId int, message models.Message) (*models.Message, utils.HttpError)

Update mocks base method.

type MockIMessageServiceMockRecorder

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

MockIMessageServiceMockRecorder is the mock recorder for MockIMessageService.

func (*MockIMessageServiceMockRecorder) Create

func (mr *MockIMessageServiceMockRecorder) Create(userId, MessageTDO interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockIMessageServiceMockRecorder) Delete

func (mr *MockIMessageServiceMockRecorder) Delete(userId, message interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockIMessageServiceMockRecorder) GetChatMessages

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

GetChatMessages indicates an expected call of GetChatMessages.

func (*MockIMessageServiceMockRecorder) GetOne

func (mr *MockIMessageServiceMockRecorder) GetOne(userId, messageId interface{}) *gomock.Call

GetOne indicates an expected call of GetOne.

func (*MockIMessageServiceMockRecorder) Update

func (mr *MockIMessageServiceMockRecorder) Update(userId, message interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockIParticipantService

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

MockIParticipantService is a mock of IParticipantService interface.

func NewMockIParticipantService

func NewMockIParticipantService(ctrl *gomock.Controller) *MockIParticipantService

NewMockIParticipantService creates a new mock instance.

func (*MockIParticipantService) Create

func (m *MockIParticipantService) Create(userId int, participant models.Participant) (*models.Participant, utils.HttpError)

Create mocks base method.

func (*MockIParticipantService) Delete

func (m *MockIParticipantService) Delete(userId int, participant models.Participant) (*models.Participant, utils.HttpError)

Delete mocks base method.

func (*MockIParticipantService) EXPECT

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

func (*MockIParticipantService) GetChatUsers

func (m *MockIParticipantService) GetChatUsers(userId, chatId int) ([]models.ChatUser, utils.HttpError)

GetChatUsers mocks base method.

func (*MockIParticipantService) Update

func (m *MockIParticipantService) Update(userId int, participant models.Participant) (*models.Participant, utils.HttpError)

Update mocks base method.

func (*MockIParticipantService) UserInChat

func (m *MockIParticipantService) UserInChat(userId, chatId int) (bool, error)

UserInChat mocks base method.

type MockIParticipantServiceMockRecorder

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

MockIParticipantServiceMockRecorder is the mock recorder for MockIParticipantService.

func (*MockIParticipantServiceMockRecorder) Create

func (mr *MockIParticipantServiceMockRecorder) Create(userId, participant interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockIParticipantServiceMockRecorder) Delete

func (mr *MockIParticipantServiceMockRecorder) Delete(userId, participant interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockIParticipantServiceMockRecorder) GetChatUsers

func (mr *MockIParticipantServiceMockRecorder) GetChatUsers(userId, chatId interface{}) *gomock.Call

GetChatUsers indicates an expected call of GetChatUsers.

func (*MockIParticipantServiceMockRecorder) Update

func (mr *MockIParticipantServiceMockRecorder) Update(userId, participant interface{}) *gomock.Call

Update indicates an expected call of Update.

func (*MockIParticipantServiceMockRecorder) UserInChat

func (mr *MockIParticipantServiceMockRecorder) UserInChat(userId, chatId interface{}) *gomock.Call

UserInChat indicates an expected call of UserInChat.

type MockIUserService

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

MockIUserService is a mock of IUserService interface.

func NewMockIUserService

func NewMockIUserService(ctrl *gomock.Controller) *MockIUserService

NewMockIUserService creates a new mock instance.

func (*MockIUserService) Delete

func (m *MockIUserService) Delete(userId int, user models.User) (*models.User, utils.HttpError)

Delete mocks base method.

func (*MockIUserService) EXPECT

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

func (*MockIUserService) GetOne

func (m *MockIUserService) GetOne(userId int) (*models.User, utils.HttpError)

GetOne mocks base method.

func (*MockIUserService) Update

func (m *MockIUserService) Update(userId int, user models.User) (*models.User, utils.HttpError)

Update mocks base method.

type MockIUserServiceMockRecorder

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

MockIUserServiceMockRecorder is the mock recorder for MockIUserService.

func (*MockIUserServiceMockRecorder) Delete

func (mr *MockIUserServiceMockRecorder) Delete(userId, user interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockIUserServiceMockRecorder) GetOne

func (mr *MockIUserServiceMockRecorder) GetOne(userId interface{}) *gomock.Call

GetOne indicates an expected call of GetOne.

func (*MockIUserServiceMockRecorder) Update

func (mr *MockIUserServiceMockRecorder) Update(userId, 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