mocks

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthUsecase

type AuthUsecase struct {
	mock.Mock
}

AuthUsecase is an autogenerated mock type for the AuthUsecase type

func (*AuthUsecase) GenerateAuthToken

func (_m *AuthUsecase) GenerateAuthToken(user entity.User, tokenizer internal.Tokenizer) (string, error)

GenerateAuthToken provides a mock function with given fields: user, tokenizer

func (*AuthUsecase) SSO

func (_m *AuthUsecase) SSO(token string, authenticator internal.SSOAuthenticator) (*entity.User, error)

SSO provides a mock function with given fields: token, authenticator

type SSOAuthenticator

type SSOAuthenticator struct {
	mock.Mock
}

SSOAuthenticator is an autogenerated mock type for the SSOAuthenticator type

func (*SSOAuthenticator) Authenticate

func (_m *SSOAuthenticator) Authenticate(token string) (*entity.User, error)

Authenticate provides a mock function with given fields: token

type TodoRepository

type TodoRepository struct {
	mock.Mock
}

TodoRepository is an autogenerated mock type for the TodoRepository type

func (*TodoRepository) Create

func (_m *TodoRepository) Create(_a0 entity.CreateTodoParam) (*entity.Todo, error)

Create provides a mock function with given fields: _a0

func (*TodoRepository) DeleteById

func (_m *TodoRepository) DeleteById(_a0 primitive.ObjectID) (bool, error)

DeleteById provides a mock function with given fields: _a0

func (*TodoRepository) GetTodoByID

func (_m *TodoRepository) GetTodoByID(_a0 primitive.ObjectID) (*entity.Todo, error)

GetTodoByID provides a mock function with given fields: _a0

func (*TodoRepository) GetTodosByUserID

func (_m *TodoRepository) GetTodosByUserID(_a0 primitive.ObjectID) ([]*entity.Todo, error)

GetTodosByUserID provides a mock function with given fields: _a0

func (*TodoRepository) UpdateById

func (_m *TodoRepository) UpdateById(_a0 primitive.ObjectID, _a1 entity.UpdateTodoParam) (bool, error)

UpdateById provides a mock function with given fields: _a0, _a1

type TodoUsecase

type TodoUsecase struct {
	mock.Mock
}

TodoUsecase is an autogenerated mock type for the TodoUsecase type

func (*TodoUsecase) CreateTodo

func (_m *TodoUsecase) CreateTodo(_a0 entity.CreateTodoParam) (*entity.Todo, error)

CreateTodo provides a mock function with given fields: _a0

func (*TodoUsecase) DeleteTodo

func (_m *TodoUsecase) DeleteTodo(_a0 primitive.ObjectID) (bool, error)

DeleteTodo provides a mock function with given fields: _a0

func (*TodoUsecase) GetAllUserTodos

func (_m *TodoUsecase) GetAllUserTodos(_a0 primitive.ObjectID) ([]*entity.Todo, error)

GetAllUserTodos provides a mock function with given fields: _a0

func (*TodoUsecase) UpdateTodo

func (_m *TodoUsecase) UpdateTodo(_a0 primitive.ObjectID, _a1 entity.UpdateTodoParam) (bool, error)

UpdateTodo provides a mock function with given fields: _a0, _a1

type Tokenizer

type Tokenizer struct {
	mock.Mock
}

Tokenizer is an autogenerated mock type for the Tokenizer type

func (*Tokenizer) Generate

func (_m *Tokenizer) Generate(_a0 entity.TokenPayload) (string, error)

Generate provides a mock function with given fields: _a0

type UserRepository

type UserRepository struct {
	mock.Mock
}

UserRepository is an autogenerated mock type for the UserRepository type

func (*UserRepository) Create

func (_m *UserRepository) Create(_a0 entity.CreateUserParam) (*entity.User, error)

Create provides a mock function with given fields: _a0

func (*UserRepository) GetUserByEmail

func (_m *UserRepository) GetUserByEmail(_a0 string) (*entity.User, error)

GetUserByEmail provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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