mocks

package
v0.0.0-...-0716d42 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IAPI

type IAPI struct {
	mock.Mock
}

IAPI is an autogenerated mock type for the IAPI type

func NewIAPI

func NewIAPI(t interface {
	mock.TestingT
	Cleanup(func())
}) *IAPI

NewIAPI creates a new instance of IAPI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*IAPI) CompleteTask

func (_m *IAPI) CompleteTask(ctx context.Context, c echo.Context, accessToken string, id string) (*models.Task, error)

CompleteTask provides a mock function with given fields: ctx, c, accessToken, id

func (*IAPI) CreateTask

func (_m *IAPI) CreateTask(ctx context.Context, c echo.Context, accessToken string, task *api.TaskCreateRequest) (*models.Task, error)

CreateTask provides a mock function with given fields: ctx, c, accessToken, task

func (*IAPI) EXPECT

func (_m *IAPI) EXPECT() *IAPI_Expecter

func (*IAPI) GetCurrentUser

func (_m *IAPI) GetCurrentUser(ctx context.Context, c echo.Context, accessToken string) (*models.User, error)

GetCurrentUser provides a mock function with given fields: ctx, c, accessToken

func (*IAPI) GetTask

func (_m *IAPI) GetTask(ctx context.Context, c echo.Context, accessToken string, id string) (*models.Task, error)

GetTask provides a mock function with given fields: ctx, c, accessToken, id

func (*IAPI) GetUser

func (_m *IAPI) GetUser(ctx context.Context, c echo.Context, username string) (*models.User, error)

GetUser provides a mock function with given fields: ctx, c, username

func (*IAPI) ListTasks

func (_m *IAPI) ListTasks(ctx context.Context, c echo.Context, accessToken string, params *api.TasksListParams) (*api.TasksListResponse, error)

ListTasks provides a mock function with given fields: ctx, c, accessToken, params

func (*IAPI) Login

Login provides a mock function with given fields: ctx, req

func (*IAPI) Refresh

func (_m *IAPI) Refresh(ctx context.Context, c echo.Context) (*api.AuthRefreshResponse, error)

Refresh provides a mock function with given fields: ctx, c

func (*IAPI) ReopenTask

func (_m *IAPI) ReopenTask(ctx context.Context, c echo.Context, accessToken string, id string) (*models.Task, error)

ReopenTask provides a mock function with given fields: ctx, c, accessToken, id

func (*IAPI) Signup

func (_m *IAPI) Signup(ctx context.Context, req api.AuthSignupRequest) (*models.User, error)

Signup provides a mock function with given fields: ctx, req

func (*IAPI) Token

func (_m *IAPI) Token(ctx context.Context, c echo.Context, accessToken string) (*api.Token, error)

Token provides a mock function with given fields: ctx, c, accessToken

func (*IAPI) TransitionTask

func (_m *IAPI) TransitionTask(ctx context.Context, c echo.Context, accessToken string, id string, task *api.TransitionTask) (*models.Task, error)

TransitionTask provides a mock function with given fields: ctx, c, accessToken, id, task

func (*IAPI) UpdateCurrentUser

func (_m *IAPI) UpdateCurrentUser(ctx context.Context, c echo.Context, accessToken string, user *api.CurrentUserUpdateRequest) (*models.User, error)

UpdateCurrentUser provides a mock function with given fields: ctx, c, accessToken, user

func (*IAPI) UpdateTask

func (_m *IAPI) UpdateTask(ctx context.Context, c echo.Context, accessToken string, id string, task *api.TaskUpdateRequest) (*models.Task, error)

UpdateTask provides a mock function with given fields: ctx, c, accessToken, id, task

type IAPI_CompleteTask_Call

type IAPI_CompleteTask_Call struct {
	*mock.Call
}

IAPI_CompleteTask_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CompleteTask'

func (*IAPI_CompleteTask_Call) Return

func (*IAPI_CompleteTask_Call) Run

func (_c *IAPI_CompleteTask_Call) Run(run func(ctx context.Context, c echo.Context, accessToken string, id string)) *IAPI_CompleteTask_Call

func (*IAPI_CompleteTask_Call) RunAndReturn

type IAPI_CreateTask_Call

type IAPI_CreateTask_Call struct {
	*mock.Call
}

IAPI_CreateTask_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateTask'

func (*IAPI_CreateTask_Call) Return

func (*IAPI_CreateTask_Call) Run

func (_c *IAPI_CreateTask_Call) Run(run func(ctx context.Context, c echo.Context, accessToken string, task *api.TaskCreateRequest)) *IAPI_CreateTask_Call

func (*IAPI_CreateTask_Call) RunAndReturn

type IAPI_Expecter

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

func (*IAPI_Expecter) CompleteTask

func (_e *IAPI_Expecter) CompleteTask(ctx interface{}, c interface{}, accessToken interface{}, id interface{}) *IAPI_CompleteTask_Call

CompleteTask is a helper method to define mock.On call

  • ctx context.Context
  • c echo.Context
  • accessToken string
  • id string

func (*IAPI_Expecter) CreateTask

func (_e *IAPI_Expecter) CreateTask(ctx interface{}, c interface{}, accessToken interface{}, task interface{}) *IAPI_CreateTask_Call

CreateTask is a helper method to define mock.On call

  • ctx context.Context
  • c echo.Context
  • accessToken string
  • task *api.TaskCreateRequest

func (*IAPI_Expecter) GetCurrentUser

func (_e *IAPI_Expecter) GetCurrentUser(ctx interface{}, c interface{}, accessToken interface{}) *IAPI_GetCurrentUser_Call

GetCurrentUser is a helper method to define mock.On call

  • ctx context.Context
  • c echo.Context
  • accessToken string

func (*IAPI_Expecter) GetTask

func (_e *IAPI_Expecter) GetTask(ctx interface{}, c interface{}, accessToken interface{}, id interface{}) *IAPI_GetTask_Call

GetTask is a helper method to define mock.On call

  • ctx context.Context
  • c echo.Context
  • accessToken string
  • id string

func (*IAPI_Expecter) GetUser

func (_e *IAPI_Expecter) GetUser(ctx interface{}, c interface{}, username interface{}) *IAPI_GetUser_Call

GetUser is a helper method to define mock.On call

  • ctx context.Context
  • c echo.Context
  • username string

func (*IAPI_Expecter) ListTasks

func (_e *IAPI_Expecter) ListTasks(ctx interface{}, c interface{}, accessToken interface{}, params interface{}) *IAPI_ListTasks_Call

ListTasks is a helper method to define mock.On call

  • ctx context.Context
  • c echo.Context
  • accessToken string
  • params *api.TasksListParams

func (*IAPI_Expecter) Login

func (_e *IAPI_Expecter) Login(ctx interface{}, req interface{}) *IAPI_Login_Call

Login is a helper method to define mock.On call

  • ctx context.Context
  • req api.AuthLoginRequest

func (*IAPI_Expecter) Refresh

func (_e *IAPI_Expecter) Refresh(ctx interface{}, c interface{}) *IAPI_Refresh_Call

Refresh is a helper method to define mock.On call

  • ctx context.Context
  • c echo.Context

func (*IAPI_Expecter) ReopenTask

func (_e *IAPI_Expecter) ReopenTask(ctx interface{}, c interface{}, accessToken interface{}, id interface{}) *IAPI_ReopenTask_Call

ReopenTask is a helper method to define mock.On call

  • ctx context.Context
  • c echo.Context
  • accessToken string
  • id string

func (*IAPI_Expecter) Signup

func (_e *IAPI_Expecter) Signup(ctx interface{}, req interface{}) *IAPI_Signup_Call

Signup is a helper method to define mock.On call

  • ctx context.Context
  • req api.AuthSignupRequest

func (*IAPI_Expecter) Token

func (_e *IAPI_Expecter) Token(ctx interface{}, c interface{}, accessToken interface{}) *IAPI_Token_Call

Token is a helper method to define mock.On call

  • ctx context.Context
  • c echo.Context
  • accessToken string

func (*IAPI_Expecter) TransitionTask

func (_e *IAPI_Expecter) TransitionTask(ctx interface{}, c interface{}, accessToken interface{}, id interface{}, task interface{}) *IAPI_TransitionTask_Call

TransitionTask is a helper method to define mock.On call

  • ctx context.Context
  • c echo.Context
  • accessToken string
  • id string
  • task *api.TransitionTask

func (*IAPI_Expecter) UpdateCurrentUser

func (_e *IAPI_Expecter) UpdateCurrentUser(ctx interface{}, c interface{}, accessToken interface{}, user interface{}) *IAPI_UpdateCurrentUser_Call

UpdateCurrentUser is a helper method to define mock.On call

  • ctx context.Context
  • c echo.Context
  • accessToken string
  • user *api.CurrentUserUpdateRequest

func (*IAPI_Expecter) UpdateTask

func (_e *IAPI_Expecter) UpdateTask(ctx interface{}, c interface{}, accessToken interface{}, id interface{}, task interface{}) *IAPI_UpdateTask_Call

UpdateTask is a helper method to define mock.On call

  • ctx context.Context
  • c echo.Context
  • accessToken string
  • id string
  • task *api.TaskUpdateRequest

type IAPI_GetCurrentUser_Call

type IAPI_GetCurrentUser_Call struct {
	*mock.Call
}

IAPI_GetCurrentUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCurrentUser'

func (*IAPI_GetCurrentUser_Call) Return

func (*IAPI_GetCurrentUser_Call) Run

func (_c *IAPI_GetCurrentUser_Call) Run(run func(ctx context.Context, c echo.Context, accessToken string)) *IAPI_GetCurrentUser_Call

func (*IAPI_GetCurrentUser_Call) RunAndReturn

type IAPI_GetTask_Call

type IAPI_GetTask_Call struct {
	*mock.Call
}

IAPI_GetTask_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTask'

func (*IAPI_GetTask_Call) Return

func (_c *IAPI_GetTask_Call) Return(_a0 *models.Task, _a1 error) *IAPI_GetTask_Call

func (*IAPI_GetTask_Call) Run

func (_c *IAPI_GetTask_Call) Run(run func(ctx context.Context, c echo.Context, accessToken string, id string)) *IAPI_GetTask_Call

func (*IAPI_GetTask_Call) RunAndReturn

type IAPI_GetUser_Call

type IAPI_GetUser_Call struct {
	*mock.Call
}

IAPI_GetUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUser'

func (*IAPI_GetUser_Call) Return

func (_c *IAPI_GetUser_Call) Return(_a0 *models.User, _a1 error) *IAPI_GetUser_Call

func (*IAPI_GetUser_Call) Run

func (_c *IAPI_GetUser_Call) Run(run func(ctx context.Context, c echo.Context, username string)) *IAPI_GetUser_Call

func (*IAPI_GetUser_Call) RunAndReturn

type IAPI_ListTasks_Call

type IAPI_ListTasks_Call struct {
	*mock.Call
}

IAPI_ListTasks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListTasks'

func (*IAPI_ListTasks_Call) Return

func (*IAPI_ListTasks_Call) Run

func (_c *IAPI_ListTasks_Call) Run(run func(ctx context.Context, c echo.Context, accessToken string, params *api.TasksListParams)) *IAPI_ListTasks_Call

func (*IAPI_ListTasks_Call) RunAndReturn

type IAPI_Login_Call

type IAPI_Login_Call struct {
	*mock.Call
}

IAPI_Login_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Login'

func (*IAPI_Login_Call) Return

func (*IAPI_Login_Call) Run

func (_c *IAPI_Login_Call) Run(run func(ctx context.Context, req api.AuthLoginRequest)) *IAPI_Login_Call

func (*IAPI_Login_Call) RunAndReturn

type IAPI_Refresh_Call

type IAPI_Refresh_Call struct {
	*mock.Call
}

IAPI_Refresh_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Refresh'

func (*IAPI_Refresh_Call) Return

func (*IAPI_Refresh_Call) Run

func (_c *IAPI_Refresh_Call) Run(run func(ctx context.Context, c echo.Context)) *IAPI_Refresh_Call

func (*IAPI_Refresh_Call) RunAndReturn

type IAPI_ReopenTask_Call

type IAPI_ReopenTask_Call struct {
	*mock.Call
}

IAPI_ReopenTask_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReopenTask'

func (*IAPI_ReopenTask_Call) Return

func (*IAPI_ReopenTask_Call) Run

func (_c *IAPI_ReopenTask_Call) Run(run func(ctx context.Context, c echo.Context, accessToken string, id string)) *IAPI_ReopenTask_Call

func (*IAPI_ReopenTask_Call) RunAndReturn

type IAPI_Signup_Call

type IAPI_Signup_Call struct {
	*mock.Call
}

IAPI_Signup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Signup'

func (*IAPI_Signup_Call) Return

func (_c *IAPI_Signup_Call) Return(_a0 *models.User, _a1 error) *IAPI_Signup_Call

func (*IAPI_Signup_Call) Run

func (*IAPI_Signup_Call) RunAndReturn

type IAPI_Token_Call

type IAPI_Token_Call struct {
	*mock.Call
}

IAPI_Token_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Token'

func (*IAPI_Token_Call) Return

func (_c *IAPI_Token_Call) Return(_a0 *api.Token, _a1 error) *IAPI_Token_Call

func (*IAPI_Token_Call) Run

func (_c *IAPI_Token_Call) Run(run func(ctx context.Context, c echo.Context, accessToken string)) *IAPI_Token_Call

func (*IAPI_Token_Call) RunAndReturn

func (_c *IAPI_Token_Call) RunAndReturn(run func(context.Context, echo.Context, string) (*api.Token, error)) *IAPI_Token_Call

type IAPI_TransitionTask_Call

type IAPI_TransitionTask_Call struct {
	*mock.Call
}

IAPI_TransitionTask_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransitionTask'

func (*IAPI_TransitionTask_Call) Return

func (*IAPI_TransitionTask_Call) Run

func (_c *IAPI_TransitionTask_Call) Run(run func(ctx context.Context, c echo.Context, accessToken string, id string, task *api.TransitionTask)) *IAPI_TransitionTask_Call

func (*IAPI_TransitionTask_Call) RunAndReturn

type IAPI_UpdateCurrentUser_Call

type IAPI_UpdateCurrentUser_Call struct {
	*mock.Call
}

IAPI_UpdateCurrentUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateCurrentUser'

func (*IAPI_UpdateCurrentUser_Call) Return

func (*IAPI_UpdateCurrentUser_Call) Run

func (*IAPI_UpdateCurrentUser_Call) RunAndReturn

type IAPI_UpdateTask_Call

type IAPI_UpdateTask_Call struct {
	*mock.Call
}

IAPI_UpdateTask_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateTask'

func (*IAPI_UpdateTask_Call) Return

func (*IAPI_UpdateTask_Call) Run

func (_c *IAPI_UpdateTask_Call) Run(run func(ctx context.Context, c echo.Context, accessToken string, id string, task *api.TaskUpdateRequest)) *IAPI_UpdateTask_Call

func (*IAPI_UpdateTask_Call) RunAndReturn

Jump to

Keyboard shortcuts

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