Documentation ¶
Index ¶
- type DateInterface
- type DateInterface_Expecter
- type DateInterface_GetDistance_Call
- type DateInterface_GetLunarDistance_Call
- type MemoRepo
- func (_m *MemoRepo) Add(memo *entity.Memo) (string, error)
- func (_m *MemoRepo) Delete(id string) error
- func (_m *MemoRepo) EXPECT() *MemoRepo_Expecter
- func (_m *MemoRepo) GetByDateRange(start string, end string, userId string) ([]entity.Memo, error)
- func (_m *MemoRepo) GetById(id string) (*entity.Memo, error)
- func (_m *MemoRepo) GetByUserId(userId string) ([]entity.Memo, error)
- func (_m *MemoRepo) Update(memo entity.Memo) error
- type MemoRepo_Add_Call
- type MemoRepo_Delete_Call
- type MemoRepo_Expecter
- func (_e *MemoRepo_Expecter) Add(memo interface{}) *MemoRepo_Add_Call
- func (_e *MemoRepo_Expecter) Delete(id interface{}) *MemoRepo_Delete_Call
- func (_e *MemoRepo_Expecter) GetByDateRange(start interface{}, end interface{}, userId interface{}) *MemoRepo_GetByDateRange_Call
- func (_e *MemoRepo_Expecter) GetById(id interface{}) *MemoRepo_GetById_Call
- func (_e *MemoRepo_Expecter) GetByUserId(userId interface{}) *MemoRepo_GetByUserId_Call
- func (_e *MemoRepo_Expecter) Update(memo interface{}) *MemoRepo_Update_Call
- type MemoRepo_GetByDateRange_Call
- type MemoRepo_GetById_Call
- type MemoRepo_GetByUserId_Call
- type MemoRepo_Update_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DateInterface ¶
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 ¶
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 (_c *DateInterface_GetDistance_Call) Return(before int, after int) *DateInterface_GetDistance_Call
func (*DateInterface_GetDistance_Call) Run ¶
func (_c *DateInterface_GetDistance_Call) Run(run func(start int, end int)) *DateInterface_GetDistance_Call
type DateInterface_GetLunarDistance_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 (_c *DateInterface_GetLunarDistance_Call) Return(before int, after int) *DateInterface_GetLunarDistance_Call
func (*DateInterface_GetLunarDistance_Call) Run ¶
func (_c *DateInterface_GetLunarDistance_Call) Run(run func(start int, end int)) *DateInterface_GetLunarDistance_Call
type MemoRepo ¶
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) EXPECT ¶
func (_m *MemoRepo) EXPECT() *MemoRepo_Expecter
func (*MemoRepo) GetByDateRange ¶
GetByDateRange provides a mock function with given fields: start, end, userId
func (*MemoRepo) GetByUserId ¶
GetByUserId provides a mock function with given fields: userId
type MemoRepo_Add_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 ¶
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 (_c *MemoRepo_Delete_Call) Return(_a0 error) *MemoRepo_Delete_Call
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 ¶
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 (_c *MemoRepo_GetByDateRange_Call) Return(_a0 []entity.Memo, _a1 error) *MemoRepo_GetByDateRange_Call
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 ¶
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 (_c *MemoRepo_GetById_Call) Return(_a0 *entity.Memo, _a1 error) *MemoRepo_GetById_Call
func (*MemoRepo_GetById_Call) Run ¶
func (_c *MemoRepo_GetById_Call) Run(run func(id string)) *MemoRepo_GetById_Call
type MemoRepo_GetByUserId_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 (_c *MemoRepo_GetByUserId_Call) Return(_a0 []entity.Memo, _a1 error) *MemoRepo_GetByUserId_Call
func (*MemoRepo_GetByUserId_Call) Run ¶
func (_c *MemoRepo_GetByUserId_Call) Run(run func(userId string)) *MemoRepo_GetByUserId_Call
type MemoRepo_Update_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 (_c *MemoRepo_Update_Call) Return(_a0 error) *MemoRepo_Update_Call
func (*MemoRepo_Update_Call) Run ¶
func (_c *MemoRepo_Update_Call) Run(run func(memo entity.Memo)) *MemoRepo_Update_Call