mock_service

package
v0.0.0-...-21ca630 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: Apache-2.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 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

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) Create

func (m *MockTodoItem) Create(userId, listId int, item todo_app.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_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) Create

func (m *MockTodoList) Create(userId int, list todo_app.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_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.

Jump to

Keyboard shortcuts

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