mock_services

package
v0.0.0-...-ab5ebe4 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock_services is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCategories

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

MockCategories is a mock of Categories interface.

func NewMockCategories

func NewMockCategories(ctrl *gomock.Controller) *MockCategories

NewMockCategories creates a new mock instance.

func (*MockCategories) Add

func (m *MockCategories) Add(ctx context.Context, telegramChatID int64, name string) error

Add mocks base method.

func (*MockCategories) AddToBeRenamedToCategory

func (m *MockCategories) AddToBeRenamedToCategory(ctx context.Context, telegramChatID int64, name string) error

AddToBeRenamedToCategory mocks base method.

func (*MockCategories) EXPECT

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

func (*MockCategories) List

func (m *MockCategories) List(ctx context.Context, telegramChatID int64) ([]core.Category, error)

List mocks base method.

func (*MockCategories) Remove

func (m *MockCategories) Remove(ctx context.Context, telegramChatID int64, name string) error

Remove mocks base method.

func (*MockCategories) Rename

func (m *MockCategories) Rename(ctx context.Context, telegramChatID int64, newName string) error

Rename mocks base method.

type MockCategoriesMockRecorder

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

MockCategoriesMockRecorder is the mock recorder for MockCategories.

func (*MockCategoriesMockRecorder) Add

func (mr *MockCategoriesMockRecorder) Add(ctx, telegramChatID, name interface{}) *gomock.Call

Add indicates an expected call of Add.

func (*MockCategoriesMockRecorder) AddToBeRenamedToCategory

func (mr *MockCategoriesMockRecorder) AddToBeRenamedToCategory(ctx, telegramChatID, name interface{}) *gomock.Call

AddToBeRenamedToCategory indicates an expected call of AddToBeRenamedToCategory.

func (*MockCategoriesMockRecorder) List

func (mr *MockCategoriesMockRecorder) List(ctx, telegramChatID interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockCategoriesMockRecorder) Remove

func (mr *MockCategoriesMockRecorder) Remove(ctx, telegramChatID, name interface{}) *gomock.Call

Remove indicates an expected call of Remove.

func (*MockCategoriesMockRecorder) Rename

func (mr *MockCategoriesMockRecorder) Rename(ctx, telegramChatID, newName interface{}) *gomock.Call

Rename indicates an expected call of Rename.

type MockInteractions

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

MockInteractions is a mock of Interactions interface.

func NewMockInteractions

func NewMockInteractions(ctrl *gomock.Controller) *MockInteractions

NewMockInteractions creates a new mock instance.

func (*MockInteractions) Add

func (m *MockInteractions) Add(ctx context.Context, telegramChatID int64, interactionID int) error

Add mocks base method.

func (*MockInteractions) EXPECT

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

func (*MockInteractions) Get

func (m *MockInteractions) Get(ctx context.Context, telegramChatID int64) (int, error)

Get mocks base method.

func (*MockInteractions) Remove

func (m *MockInteractions) Remove(ctx context.Context, telegramChatID int64) error

Remove mocks base method.

type MockInteractionsMockRecorder

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

MockInteractionsMockRecorder is the mock recorder for MockInteractions.

func (*MockInteractionsMockRecorder) Add

func (mr *MockInteractionsMockRecorder) Add(ctx, telegramChatID, interactionID interface{}) *gomock.Call

Add indicates an expected call of Add.

func (*MockInteractionsMockRecorder) Get

func (mr *MockInteractionsMockRecorder) Get(ctx, telegramChatID interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockInteractionsMockRecorder) Remove

func (mr *MockInteractionsMockRecorder) Remove(ctx, telegramChatID interface{}) *gomock.Call

Remove indicates an expected call of Remove.

type MockLogger

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

MockLogger is a mock of Logger interface.

func NewMockLogger

func NewMockLogger(ctrl *gomock.Controller) *MockLogger

NewMockLogger creates a new mock instance.

func (*MockLogger) EXPECT

func (m *MockLogger) EXPECT() *MockLoggerMockRecorder

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

func (*MockLogger) Error

func (m *MockLogger) Error(err error)

Error mocks base method.

type MockLoggerMockRecorder

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

MockLoggerMockRecorder is the mock recorder for MockLogger.

func (*MockLoggerMockRecorder) Error

func (mr *MockLoggerMockRecorder) Error(err interface{}) *gomock.Call

Error indicates an expected call of Error.

type MockNotes

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

MockNotes is a mock of Notes interface.

func NewMockNotes

func NewMockNotes(ctrl *gomock.Controller) *MockNotes

NewMockNotes creates a new mock instance.

func (*MockNotes) Add

func (m *MockNotes) Add(ctx context.Context, telegramChatID int64, categoryName, content string) error

Add mocks base method.

func (*MockNotes) EXPECT

func (m *MockNotes) EXPECT() *MockNotesMockRecorder

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

func (*MockNotes) ListInCategory

func (m *MockNotes) ListInCategory(ctx context.Context, telegramChatID int64, categoryName string) ([]core.Note, error)

ListInCategory mocks base method.

func (*MockNotes) Remove

func (m *MockNotes) Remove(ctx context.Context, telegramChatID int64, categoryName, content string) error

Remove mocks base method.

type MockNotesMockRecorder

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

MockNotesMockRecorder is the mock recorder for MockNotes.

func (*MockNotesMockRecorder) Add

func (mr *MockNotesMockRecorder) Add(ctx, telegramChatID, categoryName, content interface{}) *gomock.Call

Add indicates an expected call of Add.

func (*MockNotesMockRecorder) ListInCategory

func (mr *MockNotesMockRecorder) ListInCategory(ctx, telegramChatID, categoryName interface{}) *gomock.Call

ListInCategory indicates an expected call of ListInCategory.

func (*MockNotesMockRecorder) Remove

func (mr *MockNotesMockRecorder) Remove(ctx, telegramChatID, categoryName, content interface{}) *gomock.Call

Remove indicates an expected call of Remove.

type MockUsers

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

MockUsers is a mock of Users interface.

func NewMockUsers

func NewMockUsers(ctrl *gomock.Controller) *MockUsers

NewMockUsers creates a new mock instance.

func (*MockUsers) CheckChatIDExists

func (m *MockUsers) CheckChatIDExists(ctx context.Context, telegramChatID int64) error

CheckChatIDExists mocks base method.

func (*MockUsers) CreateIfNotExists

func (m *MockUsers) CreateIfNotExists(ctx context.Context, telegramChatID int64) error

CreateIfNotExists mocks base method.

func (*MockUsers) EXPECT

func (m *MockUsers) EXPECT() *MockUsersMockRecorder

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

type MockUsersMockRecorder

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

MockUsersMockRecorder is the mock recorder for MockUsers.

func (*MockUsersMockRecorder) CheckChatIDExists

func (mr *MockUsersMockRecorder) CheckChatIDExists(ctx, telegramChatID interface{}) *gomock.Call

CheckChatIDExists indicates an expected call of CheckChatIDExists.

func (*MockUsersMockRecorder) CreateIfNotExists

func (mr *MockUsersMockRecorder) CreateIfNotExists(ctx, telegramChatID interface{}) *gomock.Call

CreateIfNotExists indicates an expected call of CreateIfNotExists.

Jump to

Keyboard shortcuts

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