Documentation ¶
Overview ¶
Package mock_service is a generated GoMock package.
Index ¶
- type MockAutorization
- type MockAutorizationMockRecorder
- type MockTodoItem
- func (m *MockTodoItem) Create(userId, listId int, item todo_app.TodoItem) (int, error)
- func (m *MockTodoItem) Delete(userId, itemId int) error
- func (m *MockTodoItem) EXPECT() *MockTodoItemMockRecorder
- func (m *MockTodoItem) GetAll(userId, listId int) ([]todo_app.TodoItem, error)
- func (m *MockTodoItem) GetById(userId, itemId int) (todo_app.TodoItem, error)
- func (m *MockTodoItem) Update(userId, listId int, input todo_app.UpdateItemInput) error
- type MockTodoItemMockRecorder
- func (mr *MockTodoItemMockRecorder) Create(userId, listId, item interface{}) *gomock.Call
- func (mr *MockTodoItemMockRecorder) Delete(userId, itemId interface{}) *gomock.Call
- func (mr *MockTodoItemMockRecorder) GetAll(userId, listId interface{}) *gomock.Call
- func (mr *MockTodoItemMockRecorder) GetById(userId, itemId interface{}) *gomock.Call
- func (mr *MockTodoItemMockRecorder) Update(userId, listId, input interface{}) *gomock.Call
- type MockTodoList
- func (m *MockTodoList) Create(userId int, list todo_app.TodoList) (int, error)
- func (m *MockTodoList) Delete(userId, listId int) error
- func (m *MockTodoList) EXPECT() *MockTodoListMockRecorder
- func (m *MockTodoList) GetAll(userId int) ([]todo_app.TodoList, error)
- func (m *MockTodoList) GetById(userId, listId int) (todo_app.TodoList, error)
- func (m *MockTodoList) Update(userId, listId int, input todo_app.UpdateListInput) error
- type MockTodoListMockRecorder
- func (mr *MockTodoListMockRecorder) Create(userId, list interface{}) *gomock.Call
- func (mr *MockTodoListMockRecorder) Delete(userId, listId interface{}) *gomock.Call
- func (mr *MockTodoListMockRecorder) GetAll(userId interface{}) *gomock.Call
- func (mr *MockTodoListMockRecorder) GetById(userId, listId interface{}) *gomock.Call
- func (mr *MockTodoListMockRecorder) Update(userId, listId, input interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAutorization ¶
type MockAutorization struct {
// contains filtered or unexported fields
}
MockAutorization is a mock of Autorization interface.
func NewMockAutorization ¶
func NewMockAutorization(ctrl *gomock.Controller) *MockAutorization
NewMockAutorization creates a new mock instance.
func (*MockAutorization) CreateUser ¶
func (m *MockAutorization) CreateUser(user todo_app.User) (int, error)
CreateUser mocks base method.
func (*MockAutorization) EXPECT ¶
func (m *MockAutorization) EXPECT() *MockAutorizationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAutorization) GenerateToken ¶
func (m *MockAutorization) GenerateToken(username, password string) (string, error)
GenerateToken mocks base method.
func (*MockAutorization) ParseToken ¶
func (m *MockAutorization) ParseToken(token string) (int, error)
ParseToken mocks base method.
type MockAutorizationMockRecorder ¶
type MockAutorizationMockRecorder struct {
// contains filtered or unexported fields
}
MockAutorizationMockRecorder is the mock recorder for MockAutorization.
func (*MockAutorizationMockRecorder) CreateUser ¶
func (mr *MockAutorizationMockRecorder) CreateUser(user interface{}) *gomock.Call
CreateUser indicates an expected call of CreateUser.
func (*MockAutorizationMockRecorder) GenerateToken ¶
func (mr *MockAutorizationMockRecorder) GenerateToken(username, password interface{}) *gomock.Call
GenerateToken indicates an expected call of GenerateToken.
func (*MockAutorizationMockRecorder) ParseToken ¶
func (mr *MockAutorizationMockRecorder) ParseToken(token interface{}) *gomock.Call
ParseToken indicates an expected call of ParseToken.
type MockTodoItem ¶
type MockTodoItem struct {
// contains filtered or unexported fields
}
MockTodoItem is a mock of TodoItem interface.
func NewMockTodoItem ¶
func NewMockTodoItem(ctrl *gomock.Controller) *MockTodoItem
NewMockTodoItem creates a new mock instance.
func (*MockTodoItem) Delete ¶
func (m *MockTodoItem) Delete(userId, itemId int) error
Delete mocks base method.
func (*MockTodoItem) EXPECT ¶
func (m *MockTodoItem) EXPECT() *MockTodoItemMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTodoItem) GetAll ¶
func (m *MockTodoItem) GetAll(userId, listId int) ([]todo_app.TodoItem, error)
GetAll mocks base method.
func (*MockTodoItem) GetById ¶
func (m *MockTodoItem) GetById(userId, itemId int) (todo_app.TodoItem, error)
GetById mocks base method.
func (*MockTodoItem) Update ¶
func (m *MockTodoItem) Update(userId, listId int, input todo_app.UpdateItemInput) error
Update mocks base method.
type MockTodoItemMockRecorder ¶
type MockTodoItemMockRecorder struct {
// contains filtered or unexported fields
}
MockTodoItemMockRecorder is the mock recorder for MockTodoItem.
func (*MockTodoItemMockRecorder) Create ¶
func (mr *MockTodoItemMockRecorder) Create(userId, listId, item interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockTodoItemMockRecorder) Delete ¶
func (mr *MockTodoItemMockRecorder) Delete(userId, itemId interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockTodoItemMockRecorder) GetAll ¶
func (mr *MockTodoItemMockRecorder) GetAll(userId, listId interface{}) *gomock.Call
GetAll indicates an expected call of GetAll.
func (*MockTodoItemMockRecorder) GetById ¶
func (mr *MockTodoItemMockRecorder) GetById(userId, itemId interface{}) *gomock.Call
GetById indicates an expected call of GetById.
func (*MockTodoItemMockRecorder) Update ¶
func (mr *MockTodoItemMockRecorder) Update(userId, listId, input interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockTodoList ¶
type MockTodoList struct {
// contains filtered or unexported fields
}
MockTodoList is a mock of TodoList interface.
func NewMockTodoList ¶
func NewMockTodoList(ctrl *gomock.Controller) *MockTodoList
NewMockTodoList creates a new mock instance.
func (*MockTodoList) Delete ¶
func (m *MockTodoList) Delete(userId, listId int) error
Delete mocks base method.
func (*MockTodoList) EXPECT ¶
func (m *MockTodoList) EXPECT() *MockTodoListMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTodoList) GetAll ¶
func (m *MockTodoList) GetAll(userId int) ([]todo_app.TodoList, error)
GetAll mocks base method.
func (*MockTodoList) GetById ¶
func (m *MockTodoList) GetById(userId, listId int) (todo_app.TodoList, error)
GetById mocks base method.
func (*MockTodoList) Update ¶
func (m *MockTodoList) Update(userId, listId int, input todo_app.UpdateListInput) error
Update mocks base method.
type MockTodoListMockRecorder ¶
type MockTodoListMockRecorder struct {
// contains filtered or unexported fields
}
MockTodoListMockRecorder is the mock recorder for MockTodoList.
func (*MockTodoListMockRecorder) Create ¶
func (mr *MockTodoListMockRecorder) Create(userId, list interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockTodoListMockRecorder) Delete ¶
func (mr *MockTodoListMockRecorder) Delete(userId, listId interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockTodoListMockRecorder) GetAll ¶
func (mr *MockTodoListMockRecorder) GetAll(userId interface{}) *gomock.Call
GetAll indicates an expected call of GetAll.
func (*MockTodoListMockRecorder) GetById ¶
func (mr *MockTodoListMockRecorder) GetById(userId, listId interface{}) *gomock.Call
GetById indicates an expected call of GetById.
func (*MockTodoListMockRecorder) Update ¶
func (mr *MockTodoListMockRecorder) Update(userId, listId, input interface{}) *gomock.Call
Update indicates an expected call of Update.