mock_service

package
v0.0.0-...-8b1ddc7 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package mock_service is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuthorization

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

MockAuthorization is a mock of Authorization interface.

func NewMockAuthorization

func NewMockAuthorization(ctrl *gomock.Controller) *MockAuthorization

NewMockAuthorization creates a new mock instance.

func (*MockAuthorization) CreateUser

func (m *MockAuthorization) CreateUser(user todo.User) (int, error)

CreateUser mocks base method.

func (*MockAuthorization) EXPECT

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

func (*MockAuthorization) GenerateToken

func (m *MockAuthorization) GenerateToken(username, password string) (string, error)

GenerateToken mocks base method.

func (*MockAuthorization) ParseToken

func (m *MockAuthorization) ParseToken(token string) (int, error)

ParseToken mocks base method.

type MockAuthorizationMockRecorder

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

MockAuthorizationMockRecorder is the mock recorder for MockAuthorization.

func (*MockAuthorizationMockRecorder) CreateUser

func (mr *MockAuthorizationMockRecorder) CreateUser(user interface{}) *gomock.Call

CreateUser indicates an expected call of CreateUser.

func (*MockAuthorizationMockRecorder) GenerateToken

func (mr *MockAuthorizationMockRecorder) GenerateToken(username, password interface{}) *gomock.Call

GenerateToken indicates an expected call of GenerateToken.

func (*MockAuthorizationMockRecorder) ParseToken

func (mr *MockAuthorizationMockRecorder) 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) Create

func (m *MockTodoItem) Create(userId, listId int, list todo.TodoItem) (int, error)

Create mocks base method.

func (*MockTodoItem) Delete

func (m *MockTodoItem) Delete(userId, itemId int) error

Delete mocks base method.

func (*MockTodoItem) EXPECT

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

func (*MockTodoItem) GetAll

func (m *MockTodoItem) GetAll(userId, listId int) ([]todo.TodoItem, error)

GetAll mocks base method.

func (*MockTodoItem) GetById

func (m *MockTodoItem) GetById(userId, itemId int) (todo.TodoItem, error)

GetById mocks base method.

func (*MockTodoItem) Update

func (m *MockTodoItem) Update(userId, itemId int, input todo.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, list 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, itemId, 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) Create

func (m *MockTodoList) Create(userId int, list todo.TodoList) (int, error)

Create mocks base method.

func (*MockTodoList) Delete

func (m *MockTodoList) Delete(userId, listId int) error

Delete mocks base method.

func (*MockTodoList) EXPECT

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

func (*MockTodoList) GetAll

func (m *MockTodoList) GetAll(userId int) ([]todo.TodoList, error)

GetAll mocks base method.

func (*MockTodoList) GetById

func (m *MockTodoList) GetById(userId, listId int) (todo.TodoList, error)

GetById mocks base method.

func (*MockTodoList) Update

func (m *MockTodoList) Update(userId, listId int, input todo.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.

Jump to

Keyboard shortcuts

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