Documentation ¶
Overview ¶
Package mock_repository is a generated GoMock package.
Index ¶
- type MockCategories
- func (m *MockCategories) Add(ctx context.Context, telegramChatID int64, name string) error
- func (m *MockCategories) AddToBeRenamedToCategory(ctx context.Context, telegramChatID int64, name string) error
- func (m *MockCategories) EXPECT() *MockCategoriesMockRecorder
- func (m *MockCategories) List(ctx context.Context, telegramChatID int64) ([]core.Category, error)
- func (m *MockCategories) Remove(ctx context.Context, telegramChatID int64, name string) error
- func (m *MockCategories) Rename(ctx context.Context, telegramChatID int64, newName string) error
- type MockCategoriesMockRecorder
- func (mr *MockCategoriesMockRecorder) Add(ctx, telegramChatID, name interface{}) *gomock.Call
- func (mr *MockCategoriesMockRecorder) AddToBeRenamedToCategory(ctx, telegramChatID, name interface{}) *gomock.Call
- func (mr *MockCategoriesMockRecorder) List(ctx, telegramChatID interface{}) *gomock.Call
- func (mr *MockCategoriesMockRecorder) Remove(ctx, telegramChatID, name interface{}) *gomock.Call
- func (mr *MockCategoriesMockRecorder) Rename(ctx, telegramChatID, newName interface{}) *gomock.Call
- type MockInteractions
- func (m *MockInteractions) Add(ctx context.Context, telegramChatID int64, interactionID int) error
- func (m *MockInteractions) EXPECT() *MockInteractionsMockRecorder
- func (m *MockInteractions) Get(ctx context.Context, telegramChatID int64) (int, error)
- func (m *MockInteractions) Remove(ctx context.Context, telegramChatID int64) error
- type MockInteractionsMockRecorder
- type MockNotes
- func (m *MockNotes) Add(ctx context.Context, telegramChatID int64, categoryName, content string) error
- func (m *MockNotes) EXPECT() *MockNotesMockRecorder
- func (m *MockNotes) ListInCategory(ctx context.Context, telegramChatID int64, categoryName string) ([]core.Note, error)
- func (m *MockNotes) Remove(ctx context.Context, telegramChatID int64, categoryName, content string) error
- type MockNotesMockRecorder
- func (mr *MockNotesMockRecorder) Add(ctx, telegramChatID, categoryName, content interface{}) *gomock.Call
- func (mr *MockNotesMockRecorder) ListInCategory(ctx, telegramChatID, categoryName interface{}) *gomock.Call
- func (mr *MockNotesMockRecorder) Remove(ctx, telegramChatID, categoryName, content interface{}) *gomock.Call
- type MockUsers
- type MockUsersMockRecorder
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) AddToBeRenamedToCategory ¶
func (m *MockCategories) AddToBeRenamedToCategory(ctx context.Context, telegramChatID int64, name string) error
AddToBeRenamedToCategory mocks base method.
func (*MockCategories) EXPECT ¶
func (m *MockCategories) EXPECT() *MockCategoriesMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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) EXPECT ¶
func (m *MockInteractions) EXPECT() *MockInteractionsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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 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.
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 ¶
CheckChatIDExists mocks base method.
func (*MockUsers) CreateIfNotExists ¶
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.