mocks

package
v0.0.0-...-a131ce6 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskRepository

type TaskRepository struct {
	mock.Mock
}

TaskRepository is an autogenerated mock type for the TaskRepository type

func (*TaskRepository) Delete

func (_m *TaskRepository) Delete(ctx context.Context, userID int64, taskID int64) error

Delete provides a mock function with given fields: ctx, userID, taskID

func (*TaskRepository) GetAll

func (_m *TaskRepository) GetAll(ctx context.Context, userID int64, title string, filters domain.Filters) ([]*domain.Task, domain.Metadata, error)

GetAll provides a mock function with given fields: ctx, userID, title, filters

func (*TaskRepository) GetByID

func (_m *TaskRepository) GetByID(ctx context.Context, userID int64, taskID int64) (*domain.Task, error)

GetByID provides a mock function with given fields: ctx, userID, taskID

func (*TaskRepository) Insert

func (_m *TaskRepository) Insert(ctx context.Context, userID int64, task *domain.Task) error

Insert provides a mock function with given fields: ctx, userID, task

func (*TaskRepository) Update

func (_m *TaskRepository) Update(ctx context.Context, task *domain.Task) error

Update provides a mock function with given fields: ctx, task

type TaskUsecase

type TaskUsecase struct {
	mock.Mock
}

TaskUsecase is an autogenerated mock type for the TaskUsecase type

func (*TaskUsecase) Delete

func (_m *TaskUsecase) Delete(ctx context.Context, userID int64, taskID int64) error

Delete provides a mock function with given fields: ctx, userID, taskID

func (*TaskUsecase) GetAll

func (_m *TaskUsecase) GetAll(ctx context.Context, userID int64, title string, filters domain.Filters) ([]*domain.Task, domain.Metadata, error)

GetAll provides a mock function with given fields: ctx, userID, title, filters

func (*TaskUsecase) GetByID

func (_m *TaskUsecase) GetByID(ctx context.Context, userID int64, taskID int64) (*domain.Task, error)

GetByID provides a mock function with given fields: ctx, userID, taskID

func (*TaskUsecase) Insert

func (_m *TaskUsecase) Insert(ctx context.Context, userID int64, task *domain.Task) error

Insert provides a mock function with given fields: ctx, userID, task

func (*TaskUsecase) Update

func (_m *TaskUsecase) Update(ctx context.Context, task *domain.Task) error

Update provides a mock function with given fields: ctx, task

type TokenRepository

type TokenRepository struct {
	mock.Mock
}

TokenRepository is an autogenerated mock type for the TokenRepository type

func (*TokenRepository) DeleteAllForUser

func (_m *TokenRepository) DeleteAllForUser(ctx context.Context, scope string, userID int64) error

DeleteAllForUser provides a mock function with given fields: ctx, scope, userID

func (*TokenRepository) Insert

func (_m *TokenRepository) Insert(ctx context.Context, token *domain.Token) error

Insert provides a mock function with given fields: ctx, token

type TokenUsecase

type TokenUsecase struct {
	mock.Mock
}

TokenUsecase is an autogenerated mock type for the TokenUsecase type

func (*TokenUsecase) DeleteAllForUser

func (_m *TokenUsecase) DeleteAllForUser(ctx context.Context, scope string, userID int64) error

DeleteAllForUser provides a mock function with given fields: ctx, scope, userID

func (*TokenUsecase) Insert

func (_m *TokenUsecase) Insert(ctx context.Context, token *domain.Token) error

Insert provides a mock function with given fields: ctx, token

type UserRepository

type UserRepository struct {
	mock.Mock
}

UserRepository is an autogenerated mock type for the UserRepository type

func (*UserRepository) GetByEmail

func (_m *UserRepository) GetByEmail(ctx context.Context, email string) (*domain.User, error)

GetByEmail provides a mock function with given fields: ctx, email

func (*UserRepository) GetForToken

func (_m *UserRepository) GetForToken(ctx context.Context, tokenScope string, tokenPlaintext string) (*domain.User, error)

GetForToken provides a mock function with given fields: ctx, tokenScope, tokenPlaintext

func (*UserRepository) Insert

func (_m *UserRepository) Insert(ctx context.Context, user *domain.User) error

Insert provides a mock function with given fields: ctx, user

func (*UserRepository) Update

func (_m *UserRepository) Update(ctx context.Context, user *domain.User) error

Update provides a mock function with given fields: ctx, user

type UserUsecase

type UserUsecase struct {
	mock.Mock
}

UserUsecase is an autogenerated mock type for the UserUsecase type

func (*UserUsecase) Activate

func (_m *UserUsecase) Activate(ctx context.Context, tokenPlaintext string) (*domain.User, error)

Activate provides a mock function with given fields: ctx, tokenPlaintext

func (*UserUsecase) Authenticate

func (_m *UserUsecase) Authenticate(ctx context.Context, tokenScope string, tokenPlaintext string) (*domain.User, error)

Authenticate provides a mock function with given fields: ctx, tokenScope, tokenPlaintext

func (*UserUsecase) Insert

func (_m *UserUsecase) Insert(ctx context.Context, user *domain.User) error

Insert provides a mock function with given fields: ctx, user

func (*UserUsecase) Login

func (_m *UserUsecase) Login(ctx context.Context, email string, password string) (*domain.Token, error)

Login provides a mock function with given fields: ctx, email, password

func (*UserUsecase) Register

func (_m *UserUsecase) Register(ctx context.Context, user *domain.User) error

Register provides a mock function with given fields: ctx, user

func (*UserUsecase) Update

func (_m *UserUsecase) Update(ctx context.Context, user *domain.User) error

Update provides a mock function with given fields: ctx, user

Jump to

Keyboard shortcuts

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