mocks

package
v0.0.0-...-ba86dd7 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DateInterface

type DateInterface struct {
	mock.Mock
}

DateInterface is an autogenerated mock type for the DateInterface type

func NewDateInterface

func NewDateInterface(t mockConstructorTestingTNewDateInterface) *DateInterface

NewDateInterface creates a new instance of DateInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*DateInterface) EXPECT

func (_m *DateInterface) EXPECT() *DateInterface_Expecter

func (*DateInterface) GetDistance

func (_m *DateInterface) GetDistance(start int, end int) (int, int)

GetDistance provides a mock function with given fields: start, end

func (*DateInterface) GetLunarDistance

func (_m *DateInterface) GetLunarDistance(start int, end int) (int, int)

GetLunarDistance provides a mock function with given fields: start, end

type DateInterface_Expecter

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

func (*DateInterface_Expecter) GetDistance

func (_e *DateInterface_Expecter) GetDistance(start interface{}, end interface{}) *DateInterface_GetDistance_Call

GetDistance is a helper method to define mock.On call

  • start int
  • end int

func (*DateInterface_Expecter) GetLunarDistance

func (_e *DateInterface_Expecter) GetLunarDistance(start interface{}, end interface{}) *DateInterface_GetLunarDistance_Call

GetLunarDistance is a helper method to define mock.On call

  • start int
  • end int

type DateInterface_GetDistance_Call

type DateInterface_GetDistance_Call struct {
	*mock.Call
}

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

func (*DateInterface_GetDistance_Call) Return

func (*DateInterface_GetDistance_Call) Run

type DateInterface_GetLunarDistance_Call

type DateInterface_GetLunarDistance_Call struct {
	*mock.Call
}

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

func (*DateInterface_GetLunarDistance_Call) Return

func (*DateInterface_GetLunarDistance_Call) Run

type MemoRepo

type MemoRepo struct {
	mock.Mock
}

MemoRepo is an autogenerated mock type for the MemoRepo type

func NewMemoRepo

func NewMemoRepo(t mockConstructorTestingTNewMemoRepo) *MemoRepo

NewMemoRepo creates a new instance of MemoRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MemoRepo) Add

func (_m *MemoRepo) Add(memo *entity.Memo) (string, error)

Add provides a mock function with given fields: memo

func (*MemoRepo) Delete

func (_m *MemoRepo) Delete(id string) error

Delete provides a mock function with given fields: id

func (*MemoRepo) EXPECT

func (_m *MemoRepo) EXPECT() *MemoRepo_Expecter

func (*MemoRepo) GetByDateRange

func (_m *MemoRepo) GetByDateRange(start string, end string, userId string) ([]entity.Memo, error)

GetByDateRange provides a mock function with given fields: start, end, userId

func (*MemoRepo) GetById

func (_m *MemoRepo) GetById(id string) (*entity.Memo, error)

GetById provides a mock function with given fields: id

func (*MemoRepo) GetByUserId

func (_m *MemoRepo) GetByUserId(userId string) ([]entity.Memo, error)

GetByUserId provides a mock function with given fields: userId

func (*MemoRepo) Update

func (_m *MemoRepo) Update(memo entity.Memo) error

Update provides a mock function with given fields: memo

type MemoRepo_Add_Call

type MemoRepo_Add_Call struct {
	*mock.Call
}

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

func (*MemoRepo_Add_Call) Return

func (_c *MemoRepo_Add_Call) Return(_a0 string, _a1 error) *MemoRepo_Add_Call

func (*MemoRepo_Add_Call) Run

func (_c *MemoRepo_Add_Call) Run(run func(memo *entity.Memo)) *MemoRepo_Add_Call

type MemoRepo_Delete_Call

type MemoRepo_Delete_Call struct {
	*mock.Call
}

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

func (*MemoRepo_Delete_Call) Return

func (*MemoRepo_Delete_Call) Run

func (_c *MemoRepo_Delete_Call) Run(run func(id string)) *MemoRepo_Delete_Call

type MemoRepo_Expecter

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

func (*MemoRepo_Expecter) Add

func (_e *MemoRepo_Expecter) Add(memo interface{}) *MemoRepo_Add_Call

Add is a helper method to define mock.On call

  • memo *entity.Memo

func (*MemoRepo_Expecter) Delete

func (_e *MemoRepo_Expecter) Delete(id interface{}) *MemoRepo_Delete_Call

Delete is a helper method to define mock.On call

  • id string

func (*MemoRepo_Expecter) GetByDateRange

func (_e *MemoRepo_Expecter) GetByDateRange(start interface{}, end interface{}, userId interface{}) *MemoRepo_GetByDateRange_Call

GetByDateRange is a helper method to define mock.On call

  • start string
  • end string
  • userId string

func (*MemoRepo_Expecter) GetById

func (_e *MemoRepo_Expecter) GetById(id interface{}) *MemoRepo_GetById_Call

GetById is a helper method to define mock.On call

  • id string

func (*MemoRepo_Expecter) GetByUserId

func (_e *MemoRepo_Expecter) GetByUserId(userId interface{}) *MemoRepo_GetByUserId_Call

GetByUserId is a helper method to define mock.On call

  • userId string

func (*MemoRepo_Expecter) Update

func (_e *MemoRepo_Expecter) Update(memo interface{}) *MemoRepo_Update_Call

Update is a helper method to define mock.On call

  • memo entity.Memo

type MemoRepo_GetByDateRange_Call

type MemoRepo_GetByDateRange_Call struct {
	*mock.Call
}

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

func (*MemoRepo_GetByDateRange_Call) Return

func (*MemoRepo_GetByDateRange_Call) Run

func (_c *MemoRepo_GetByDateRange_Call) Run(run func(start string, end string, userId string)) *MemoRepo_GetByDateRange_Call

type MemoRepo_GetById_Call

type MemoRepo_GetById_Call struct {
	*mock.Call
}

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

func (*MemoRepo_GetById_Call) Return

func (*MemoRepo_GetById_Call) Run

func (_c *MemoRepo_GetById_Call) Run(run func(id string)) *MemoRepo_GetById_Call

type MemoRepo_GetByUserId_Call

type MemoRepo_GetByUserId_Call struct {
	*mock.Call
}

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

func (*MemoRepo_GetByUserId_Call) Return

func (*MemoRepo_GetByUserId_Call) Run

func (_c *MemoRepo_GetByUserId_Call) Run(run func(userId string)) *MemoRepo_GetByUserId_Call

type MemoRepo_Update_Call

type MemoRepo_Update_Call struct {
	*mock.Call
}

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

func (*MemoRepo_Update_Call) Return

func (*MemoRepo_Update_Call) Run

func (_c *MemoRepo_Update_Call) Run(run func(memo entity.Memo)) *MemoRepo_Update_Call

Jump to

Keyboard shortcuts

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