Documentation
¶
Index ¶
- type CacheRepo
- func (_m *CacheRepo) DecrKYCByStatus(ctx context.Context, statusKYC int64) error
- func (_m *CacheRepo) EXPECT() *CacheRepo_Expecter
- func (_m *CacheRepo) GetDetailMovie(ctx context.Context, movieID string) (*omdb.OMDBDetail, error)
- func (_m *CacheRepo) GetKYCByStatus(ctx context.Context, statusKYC int64) (int, error)
- func (_m *CacheRepo) GetListMovie(ctx context.Context, search string, page int64) (*omdb.OMDBList, error)
- func (_m *CacheRepo) IncrKYCByStatus(ctx context.Context, statusKYC int64) error
- func (_m *CacheRepo) SetDetailMovie(ctx context.Context, movieID string, req *omdb.OMDBDetail) error
- func (_m *CacheRepo) SetKYCByStatus(ctx context.Context, statusKYC int64, value int) error
- func (_m *CacheRepo) SetListMovie(ctx context.Context, search string, page int64, req *omdb.OMDBList) error
- type CacheRepo_DecrKYCByStatus_Call
- type CacheRepo_Expecter
- func (_e *CacheRepo_Expecter) DecrKYCByStatus(ctx interface{}, statusKYC interface{}) *CacheRepo_DecrKYCByStatus_Call
- func (_e *CacheRepo_Expecter) GetDetailMovie(ctx interface{}, movieID interface{}) *CacheRepo_GetDetailMovie_Call
- func (_e *CacheRepo_Expecter) GetKYCByStatus(ctx interface{}, statusKYC interface{}) *CacheRepo_GetKYCByStatus_Call
- func (_e *CacheRepo_Expecter) GetListMovie(ctx interface{}, search interface{}, page interface{}) *CacheRepo_GetListMovie_Call
- func (_e *CacheRepo_Expecter) IncrKYCByStatus(ctx interface{}, statusKYC interface{}) *CacheRepo_IncrKYCByStatus_Call
- func (_e *CacheRepo_Expecter) SetDetailMovie(ctx interface{}, movieID interface{}, req interface{}) *CacheRepo_SetDetailMovie_Call
- func (_e *CacheRepo_Expecter) SetKYCByStatus(ctx interface{}, statusKYC interface{}, value interface{}) *CacheRepo_SetKYCByStatus_Call
- func (_e *CacheRepo_Expecter) SetListMovie(ctx interface{}, search interface{}, page interface{}, req interface{}) *CacheRepo_SetListMovie_Call
- type CacheRepo_GetDetailMovie_Call
- type CacheRepo_GetKYCByStatus_Call
- type CacheRepo_GetListMovie_Call
- type CacheRepo_IncrKYCByStatus_Call
- type CacheRepo_SetDetailMovie_Call
- type CacheRepo_SetKYCByStatus_Call
- type CacheRepo_SetListMovie_Call
- type CallWrapperRepo
- type CallWrapperRepo_Call_Call
- type CallWrapperRepo_Expecter
- type CallWrapperRepo_GetWrapper_Call
- type ConsumerUsecase
- type ConsumerUsecase_DoPayment_Call
- type ConsumerUsecase_Expecter
- type CronUsecase
- type CronUsecase_DoCreateDummyData_Call
- type CronUsecase_Expecter
- type DBRepo
- func (_m *DBRepo) CreateHistoryLog(ctx context.Context, reqDB *modelDB.HistoryLog) (int64, error)
- func (_m *DBRepo) CreateHistoryLogTx(ctx context.Context, tx *sqlx.Tx, reqDB *modelDB.HistoryLog) (int64, error)
- func (_m *DBRepo) CreateHistorySigning(ctx context.Context, reqDB *modelDB.Signing) (int64, error)
- func (_m *DBRepo) CreateUserTx(ctx context.Context, tx *sqlx.Tx, reqDB *modelDB.User) (int64, error)
- func (_m *DBRepo) EXPECT() *DBRepo_Expecter
- func (_m *DBRepo) GetUserByEmail(ctx context.Context, email string) (*modelDB.User, error)
- func (_m *DBRepo) TxBegin(ctx context.Context) (*sqlx.Tx, error)
- func (_m *DBRepo) TxCommit(tx *sqlx.Tx) error
- func (_m *DBRepo) TxError(tx *sqlx.Tx, err error) error
- type DBRepo_CreateHistoryLogTx_Call
- type DBRepo_CreateHistoryLog_Call
- type DBRepo_CreateHistorySigning_Call
- type DBRepo_CreateUserTx_Call
- type DBRepo_Expecter
- func (_e *DBRepo_Expecter) CreateHistoryLog(ctx interface{}, reqDB interface{}) *DBRepo_CreateHistoryLog_Call
- func (_e *DBRepo_Expecter) CreateHistoryLogTx(ctx interface{}, tx interface{}, reqDB interface{}) *DBRepo_CreateHistoryLogTx_Call
- func (_e *DBRepo_Expecter) CreateHistorySigning(ctx interface{}, reqDB interface{}) *DBRepo_CreateHistorySigning_Call
- func (_e *DBRepo_Expecter) CreateUserTx(ctx interface{}, tx interface{}, reqDB interface{}) *DBRepo_CreateUserTx_Call
- func (_e *DBRepo_Expecter) GetUserByEmail(ctx interface{}, email interface{}) *DBRepo_GetUserByEmail_Call
- func (_e *DBRepo_Expecter) TxBegin(ctx interface{}) *DBRepo_TxBegin_Call
- func (_e *DBRepo_Expecter) TxCommit(tx interface{}) *DBRepo_TxCommit_Call
- func (_e *DBRepo_Expecter) TxError(tx interface{}, err interface{}) *DBRepo_TxError_Call
- type DBRepo_GetUserByEmail_Call
- type DBRepo_TxBegin_Call
- type DBRepo_TxCommit_Call
- type DBRepo_TxError_Call
- type FirestoreRepo
- type FirestoreRepo_Expecter
- type FirestoreRepo_GetAccount_Call
- type GrpcUsecase
- func (_m *GrpcUsecase) DoGetDetailMovie(ctx context.Context, req *service.GetDetailMovieReq) (*service.GetDetailMovieResp, error)
- func (_m *GrpcUsecase) DoGetListMovie(ctx context.Context, reqClient *service.GetListMovieReq) (*service.GetListMovieResp, *customError.Error)
- func (_m *GrpcUsecase) EXPECT() *GrpcUsecase_Expecter
- type GrpcUsecase_DoGetDetailMovie_Call
- type GrpcUsecase_DoGetListMovie_Call
- type GrpcUsecase_Expecter
- type HelpersRepo
- type HelpersRepo_Expecter
- type HelpersRepo_Tes_Call
- type OMDBRepo
- type OMDBRepo_Expecter
- type OMDBRepo_GetDetailMovie_Call
- type OMDBRepo_GetListMovie_Call
- type RestUsecase
- func (_m *RestUsecase) DoGetDetailMovie(ctx *fiber.Ctx, movieID string) (*modelResp.DetailMovie, int, error)
- func (_m *RestUsecase) DoGetListMovie(ctx *fiber.Ctx, reqClient *modelReq.ListMovie) (*modelResp.ListMovie, int, error)
- func (_m *RestUsecase) DoSigning(ctx *fiber.Ctx, reqClient *modelReq.User) (*modelResp.User, int, error)
- func (_m *RestUsecase) DoSignup(ctx *fiber.Ctx, reqClient *modelReq.User) (*modelResp.User, int, error)
- func (_m *RestUsecase) EXPECT() *RestUsecase_Expecter
- type RestUsecase_DoGetDetailMovie_Call
- type RestUsecase_DoGetListMovie_Call
- type RestUsecase_DoSigning_Call
- type RestUsecase_DoSignup_Call
- type RestUsecase_Expecter
- func (_e *RestUsecase_Expecter) DoGetDetailMovie(ctx interface{}, movieID interface{}) *RestUsecase_DoGetDetailMovie_Call
- func (_e *RestUsecase_Expecter) DoGetListMovie(ctx interface{}, reqClient interface{}) *RestUsecase_DoGetListMovie_Call
- func (_e *RestUsecase_Expecter) DoSigning(ctx interface{}, reqClient interface{}) *RestUsecase_DoSigning_Call
- func (_e *RestUsecase_Expecter) DoSignup(ctx interface{}, reqClient interface{}) *RestUsecase_DoSignup_Call
- type SpotifyRepo
- type SpotifyRepo_Expecter
- type SpotifyRepo_GetUser_Call
- type UtilsRepo
- func (_m *UtilsRepo) CheckPasswordHash(password string, hash string) bool
- func (_m *UtilsRepo) CurrentTimeF(format string) (string, error)
- func (_m *UtilsRepo) Decrypt(passphrase string, cipherText string) (string, error)
- func (_m *UtilsRepo) EXPECT() *UtilsRepo_Expecter
- func (_m *UtilsRepo) Encrypt(passphrase string, plaintext string) (string, error)
- func (_m *UtilsRepo) HashPassword(password string) (string, error)
- func (_m *UtilsRepo) ToMap(v interface{}) map[string]interface{}
- func (_m *UtilsRepo) ToStruct(v map[string]interface{}, r interface{}) error
- type UtilsRepo_CheckPasswordHash_Call
- type UtilsRepo_CurrentTimeF_Call
- type UtilsRepo_Decrypt_Call
- type UtilsRepo_Encrypt_Call
- type UtilsRepo_Expecter
- func (_e *UtilsRepo_Expecter) CheckPasswordHash(password interface{}, hash interface{}) *UtilsRepo_CheckPasswordHash_Call
- func (_e *UtilsRepo_Expecter) CurrentTimeF(format interface{}) *UtilsRepo_CurrentTimeF_Call
- func (_e *UtilsRepo_Expecter) Decrypt(passphrase interface{}, cipherText interface{}) *UtilsRepo_Decrypt_Call
- func (_e *UtilsRepo_Expecter) Encrypt(passphrase interface{}, plaintext interface{}) *UtilsRepo_Encrypt_Call
- func (_e *UtilsRepo_Expecter) HashPassword(password interface{}) *UtilsRepo_HashPassword_Call
- func (_e *UtilsRepo_Expecter) ToMap(v interface{}) *UtilsRepo_ToMap_Call
- func (_e *UtilsRepo_Expecter) ToStruct(v interface{}, r interface{}) *UtilsRepo_ToStruct_Call
- type UtilsRepo_HashPassword_Call
- type UtilsRepo_ToMap_Call
- type UtilsRepo_ToStruct_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheRepo ¶
CacheRepo is an autogenerated mock type for the CacheRepo type
func NewCacheRepo ¶ added in v1.1.2
func NewCacheRepo(t mockConstructorTestingTNewCacheRepo) *CacheRepo
NewCacheRepo creates a new instance of CacheRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CacheRepo) DecrKYCByStatus ¶
DecrKYCByStatus provides a mock function with given fields: ctx, statusKYC
func (*CacheRepo) EXPECT ¶ added in v1.1.2
func (_m *CacheRepo) EXPECT() *CacheRepo_Expecter
func (*CacheRepo) GetDetailMovie ¶
GetDetailMovie provides a mock function with given fields: ctx, movieID
func (*CacheRepo) GetKYCByStatus ¶
GetKYCByStatus provides a mock function with given fields: ctx, statusKYC
func (*CacheRepo) GetListMovie ¶
func (_m *CacheRepo) GetListMovie(ctx context.Context, search string, page int64) (*omdb.OMDBList, error)
GetListMovie provides a mock function with given fields: ctx, search, page
func (*CacheRepo) IncrKYCByStatus ¶
IncrKYCByStatus provides a mock function with given fields: ctx, statusKYC
func (*CacheRepo) SetDetailMovie ¶
func (_m *CacheRepo) SetDetailMovie(ctx context.Context, movieID string, req *omdb.OMDBDetail) error
SetDetailMovie provides a mock function with given fields: ctx, movieID, req
func (*CacheRepo) SetKYCByStatus ¶
SetKYCByStatus provides a mock function with given fields: ctx, statusKYC, value
type CacheRepo_DecrKYCByStatus_Call ¶ added in v1.1.2
CacheRepo_DecrKYCByStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DecrKYCByStatus'
func (*CacheRepo_DecrKYCByStatus_Call) Return ¶ added in v1.1.2
func (_c *CacheRepo_DecrKYCByStatus_Call) Return(err error) *CacheRepo_DecrKYCByStatus_Call
func (*CacheRepo_DecrKYCByStatus_Call) Run ¶ added in v1.1.2
func (_c *CacheRepo_DecrKYCByStatus_Call) Run(run func(ctx context.Context, statusKYC int64)) *CacheRepo_DecrKYCByStatus_Call
type CacheRepo_Expecter ¶ added in v1.1.2
type CacheRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*CacheRepo_Expecter) DecrKYCByStatus ¶ added in v1.1.2
func (_e *CacheRepo_Expecter) DecrKYCByStatus(ctx interface{}, statusKYC interface{}) *CacheRepo_DecrKYCByStatus_Call
DecrKYCByStatus is a helper method to define mock.On call
- ctx context.Context
- statusKYC int64
func (*CacheRepo_Expecter) GetDetailMovie ¶ added in v1.1.2
func (_e *CacheRepo_Expecter) GetDetailMovie(ctx interface{}, movieID interface{}) *CacheRepo_GetDetailMovie_Call
GetDetailMovie is a helper method to define mock.On call
- ctx context.Context
- movieID string
func (*CacheRepo_Expecter) GetKYCByStatus ¶ added in v1.1.2
func (_e *CacheRepo_Expecter) GetKYCByStatus(ctx interface{}, statusKYC interface{}) *CacheRepo_GetKYCByStatus_Call
GetKYCByStatus is a helper method to define mock.On call
- ctx context.Context
- statusKYC int64
func (*CacheRepo_Expecter) GetListMovie ¶ added in v1.1.2
func (_e *CacheRepo_Expecter) GetListMovie(ctx interface{}, search interface{}, page interface{}) *CacheRepo_GetListMovie_Call
GetListMovie is a helper method to define mock.On call
- ctx context.Context
- search string
- page int64
func (*CacheRepo_Expecter) IncrKYCByStatus ¶ added in v1.1.2
func (_e *CacheRepo_Expecter) IncrKYCByStatus(ctx interface{}, statusKYC interface{}) *CacheRepo_IncrKYCByStatus_Call
IncrKYCByStatus is a helper method to define mock.On call
- ctx context.Context
- statusKYC int64
func (*CacheRepo_Expecter) SetDetailMovie ¶ added in v1.1.2
func (_e *CacheRepo_Expecter) SetDetailMovie(ctx interface{}, movieID interface{}, req interface{}) *CacheRepo_SetDetailMovie_Call
SetDetailMovie is a helper method to define mock.On call
- ctx context.Context
- movieID string
- req *omdb.OMDBDetail
func (*CacheRepo_Expecter) SetKYCByStatus ¶ added in v1.1.2
func (_e *CacheRepo_Expecter) SetKYCByStatus(ctx interface{}, statusKYC interface{}, value interface{}) *CacheRepo_SetKYCByStatus_Call
SetKYCByStatus is a helper method to define mock.On call
- ctx context.Context
- statusKYC int64
- value int
func (*CacheRepo_Expecter) SetListMovie ¶ added in v1.1.2
func (_e *CacheRepo_Expecter) SetListMovie(ctx interface{}, search interface{}, page interface{}, req interface{}) *CacheRepo_SetListMovie_Call
SetListMovie is a helper method to define mock.On call
- ctx context.Context
- search string
- page int64
- req *omdb.OMDBList
type CacheRepo_GetDetailMovie_Call ¶ added in v1.1.2
CacheRepo_GetDetailMovie_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDetailMovie'
func (*CacheRepo_GetDetailMovie_Call) Return ¶ added in v1.1.2
func (_c *CacheRepo_GetDetailMovie_Call) Return(resp *omdb.OMDBDetail, err error) *CacheRepo_GetDetailMovie_Call
func (*CacheRepo_GetDetailMovie_Call) Run ¶ added in v1.1.2
func (_c *CacheRepo_GetDetailMovie_Call) Run(run func(ctx context.Context, movieID string)) *CacheRepo_GetDetailMovie_Call
type CacheRepo_GetKYCByStatus_Call ¶ added in v1.1.2
CacheRepo_GetKYCByStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetKYCByStatus'
func (*CacheRepo_GetKYCByStatus_Call) Return ¶ added in v1.1.2
func (_c *CacheRepo_GetKYCByStatus_Call) Return(total int, err error) *CacheRepo_GetKYCByStatus_Call
func (*CacheRepo_GetKYCByStatus_Call) Run ¶ added in v1.1.2
func (_c *CacheRepo_GetKYCByStatus_Call) Run(run func(ctx context.Context, statusKYC int64)) *CacheRepo_GetKYCByStatus_Call
type CacheRepo_GetListMovie_Call ¶ added in v1.1.2
CacheRepo_GetListMovie_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetListMovie'
func (*CacheRepo_GetListMovie_Call) Return ¶ added in v1.1.2
func (_c *CacheRepo_GetListMovie_Call) Return(resp *omdb.OMDBList, err error) *CacheRepo_GetListMovie_Call
func (*CacheRepo_GetListMovie_Call) Run ¶ added in v1.1.2
func (_c *CacheRepo_GetListMovie_Call) Run(run func(ctx context.Context, search string, page int64)) *CacheRepo_GetListMovie_Call
type CacheRepo_IncrKYCByStatus_Call ¶ added in v1.1.2
CacheRepo_IncrKYCByStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IncrKYCByStatus'
func (*CacheRepo_IncrKYCByStatus_Call) Return ¶ added in v1.1.2
func (_c *CacheRepo_IncrKYCByStatus_Call) Return(err error) *CacheRepo_IncrKYCByStatus_Call
func (*CacheRepo_IncrKYCByStatus_Call) Run ¶ added in v1.1.2
func (_c *CacheRepo_IncrKYCByStatus_Call) Run(run func(ctx context.Context, statusKYC int64)) *CacheRepo_IncrKYCByStatus_Call
type CacheRepo_SetDetailMovie_Call ¶ added in v1.1.2
CacheRepo_SetDetailMovie_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetDetailMovie'
func (*CacheRepo_SetDetailMovie_Call) Return ¶ added in v1.1.2
func (_c *CacheRepo_SetDetailMovie_Call) Return(err error) *CacheRepo_SetDetailMovie_Call
func (*CacheRepo_SetDetailMovie_Call) Run ¶ added in v1.1.2
func (_c *CacheRepo_SetDetailMovie_Call) Run(run func(ctx context.Context, movieID string, req *omdb.OMDBDetail)) *CacheRepo_SetDetailMovie_Call
type CacheRepo_SetKYCByStatus_Call ¶ added in v1.1.2
CacheRepo_SetKYCByStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetKYCByStatus'
func (*CacheRepo_SetKYCByStatus_Call) Return ¶ added in v1.1.2
func (_c *CacheRepo_SetKYCByStatus_Call) Return(err error) *CacheRepo_SetKYCByStatus_Call
func (*CacheRepo_SetKYCByStatus_Call) Run ¶ added in v1.1.2
func (_c *CacheRepo_SetKYCByStatus_Call) Run(run func(ctx context.Context, statusKYC int64, value int)) *CacheRepo_SetKYCByStatus_Call
type CacheRepo_SetListMovie_Call ¶ added in v1.1.2
CacheRepo_SetListMovie_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetListMovie'
func (*CacheRepo_SetListMovie_Call) Return ¶ added in v1.1.2
func (_c *CacheRepo_SetListMovie_Call) Return(err error) *CacheRepo_SetListMovie_Call
func (*CacheRepo_SetListMovie_Call) Run ¶ added in v1.1.2
func (_c *CacheRepo_SetListMovie_Call) Run(run func(ctx context.Context, search string, page int64, req *omdb.OMDBList)) *CacheRepo_SetListMovie_Call
type CallWrapperRepo ¶
CallWrapperRepo is an autogenerated mock type for the CallWrapperRepo type
func NewCallWrapperRepo ¶ added in v1.1.2
func NewCallWrapperRepo(t mockConstructorTestingTNewCallWrapperRepo) *CallWrapperRepo
NewCallWrapperRepo creates a new instance of CallWrapperRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CallWrapperRepo) Call ¶
func (_m *CallWrapperRepo) Call(req func() (interface{}, error)) (interface{}, error)
Call provides a mock function with given fields: req
func (*CallWrapperRepo) EXPECT ¶ added in v1.1.2
func (_m *CallWrapperRepo) EXPECT() *CallWrapperRepo_Expecter
func (*CallWrapperRepo) GetWrapper ¶
func (_m *CallWrapperRepo) GetWrapper(usecase string) *wrappers.Wrapper
GetWrapper provides a mock function with given fields: usecase
type CallWrapperRepo_Call_Call ¶ added in v1.1.2
CallWrapperRepo_Call_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Call'
func (*CallWrapperRepo_Call_Call) Return ¶ added in v1.1.2
func (_c *CallWrapperRepo_Call_Call) Return(_a0 interface{}, _a1 error) *CallWrapperRepo_Call_Call
func (*CallWrapperRepo_Call_Call) Run ¶ added in v1.1.2
func (_c *CallWrapperRepo_Call_Call) Run(run func(req func() (interface{}, error))) *CallWrapperRepo_Call_Call
type CallWrapperRepo_Expecter ¶ added in v1.1.2
type CallWrapperRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*CallWrapperRepo_Expecter) Call ¶ added in v1.1.2
func (_e *CallWrapperRepo_Expecter) Call(req interface{}) *CallWrapperRepo_Call_Call
Call is a helper method to define mock.On call
- req func()(interface{} , error)
func (*CallWrapperRepo_Expecter) GetWrapper ¶ added in v1.1.2
func (_e *CallWrapperRepo_Expecter) GetWrapper(usecase interface{}) *CallWrapperRepo_GetWrapper_Call
GetWrapper is a helper method to define mock.On call
- usecase string
type CallWrapperRepo_GetWrapper_Call ¶ added in v1.1.2
CallWrapperRepo_GetWrapper_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWrapper'
func (*CallWrapperRepo_GetWrapper_Call) Return ¶ added in v1.1.2
func (_c *CallWrapperRepo_GetWrapper_Call) Return(_a0 *wrappers.Wrapper) *CallWrapperRepo_GetWrapper_Call
func (*CallWrapperRepo_GetWrapper_Call) Run ¶ added in v1.1.2
func (_c *CallWrapperRepo_GetWrapper_Call) Run(run func(usecase string)) *CallWrapperRepo_GetWrapper_Call
type ConsumerUsecase ¶
ConsumerUsecase is an autogenerated mock type for the ConsumerUsecase type
func NewConsumerUsecase ¶ added in v1.1.2
func NewConsumerUsecase(t mockConstructorTestingTNewConsumerUsecase) *ConsumerUsecase
NewConsumerUsecase creates a new instance of ConsumerUsecase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ConsumerUsecase) DoPayment ¶
func (_m *ConsumerUsecase) DoPayment(ctx context.Context) error
DoPayment provides a mock function with given fields: ctx
func (*ConsumerUsecase) EXPECT ¶ added in v1.1.2
func (_m *ConsumerUsecase) EXPECT() *ConsumerUsecase_Expecter
type ConsumerUsecase_DoPayment_Call ¶ added in v1.1.2
ConsumerUsecase_DoPayment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DoPayment'
func (*ConsumerUsecase_DoPayment_Call) Return ¶ added in v1.1.2
func (_c *ConsumerUsecase_DoPayment_Call) Return(_a0 error) *ConsumerUsecase_DoPayment_Call
func (*ConsumerUsecase_DoPayment_Call) Run ¶ added in v1.1.2
func (_c *ConsumerUsecase_DoPayment_Call) Run(run func(ctx context.Context)) *ConsumerUsecase_DoPayment_Call
type ConsumerUsecase_Expecter ¶ added in v1.1.2
type ConsumerUsecase_Expecter struct {
// contains filtered or unexported fields
}
func (*ConsumerUsecase_Expecter) DoPayment ¶ added in v1.1.2
func (_e *ConsumerUsecase_Expecter) DoPayment(ctx interface{}) *ConsumerUsecase_DoPayment_Call
DoPayment is a helper method to define mock.On call
- ctx context.Context
type CronUsecase ¶
CronUsecase is an autogenerated mock type for the CronUsecase type
func NewCronUsecase ¶ added in v1.1.2
func NewCronUsecase(t mockConstructorTestingTNewCronUsecase) *CronUsecase
NewCronUsecase creates a new instance of CronUsecase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CronUsecase) DoCreateDummyData ¶
func (_m *CronUsecase) DoCreateDummyData(ctx context.Context) error
DoCreateDummyData provides a mock function with given fields: ctx
func (*CronUsecase) EXPECT ¶ added in v1.1.2
func (_m *CronUsecase) EXPECT() *CronUsecase_Expecter
type CronUsecase_DoCreateDummyData_Call ¶ added in v1.1.2
CronUsecase_DoCreateDummyData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DoCreateDummyData'
func (*CronUsecase_DoCreateDummyData_Call) Return ¶ added in v1.1.2
func (_c *CronUsecase_DoCreateDummyData_Call) Return(_a0 error) *CronUsecase_DoCreateDummyData_Call
func (*CronUsecase_DoCreateDummyData_Call) Run ¶ added in v1.1.2
func (_c *CronUsecase_DoCreateDummyData_Call) Run(run func(ctx context.Context)) *CronUsecase_DoCreateDummyData_Call
type CronUsecase_Expecter ¶ added in v1.1.2
type CronUsecase_Expecter struct {
// contains filtered or unexported fields
}
func (*CronUsecase_Expecter) DoCreateDummyData ¶ added in v1.1.2
func (_e *CronUsecase_Expecter) DoCreateDummyData(ctx interface{}) *CronUsecase_DoCreateDummyData_Call
DoCreateDummyData is a helper method to define mock.On call
- ctx context.Context
type DBRepo ¶
DBRepo is an autogenerated mock type for the DBRepo type
func NewDBRepo ¶ added in v1.1.2
func NewDBRepo(t mockConstructorTestingTNewDBRepo) *DBRepo
NewDBRepo creates a new instance of DBRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*DBRepo) CreateHistoryLog ¶
CreateHistoryLog provides a mock function with given fields: ctx, reqDB
func (*DBRepo) CreateHistoryLogTx ¶
func (_m *DBRepo) CreateHistoryLogTx(ctx context.Context, tx *sqlx.Tx, reqDB *modelDB.HistoryLog) (int64, error)
CreateHistoryLogTx provides a mock function with given fields: ctx, tx, reqDB
func (*DBRepo) CreateHistorySigning ¶
CreateHistorySigning provides a mock function with given fields: ctx, reqDB
func (*DBRepo) CreateUserTx ¶
func (_m *DBRepo) CreateUserTx(ctx context.Context, tx *sqlx.Tx, reqDB *modelDB.User) (int64, error)
CreateUserTx provides a mock function with given fields: ctx, tx, reqDB
func (*DBRepo) EXPECT ¶ added in v1.1.2
func (_m *DBRepo) EXPECT() *DBRepo_Expecter
func (*DBRepo) GetUserByEmail ¶
GetUserByEmail provides a mock function with given fields: ctx, email
type DBRepo_CreateHistoryLogTx_Call ¶ added in v1.1.2
DBRepo_CreateHistoryLogTx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateHistoryLogTx'
func (*DBRepo_CreateHistoryLogTx_Call) Return ¶ added in v1.1.2
func (_c *DBRepo_CreateHistoryLogTx_Call) Return(lastInsertID int64, err error) *DBRepo_CreateHistoryLogTx_Call
func (*DBRepo_CreateHistoryLogTx_Call) Run ¶ added in v1.1.2
func (_c *DBRepo_CreateHistoryLogTx_Call) Run(run func(ctx context.Context, tx *sqlx.Tx, reqDB *modelDB.HistoryLog)) *DBRepo_CreateHistoryLogTx_Call
type DBRepo_CreateHistoryLog_Call ¶ added in v1.1.2
DBRepo_CreateHistoryLog_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateHistoryLog'
func (*DBRepo_CreateHistoryLog_Call) Return ¶ added in v1.1.2
func (_c *DBRepo_CreateHistoryLog_Call) Return(lastInsertID int64, err error) *DBRepo_CreateHistoryLog_Call
func (*DBRepo_CreateHistoryLog_Call) Run ¶ added in v1.1.2
func (_c *DBRepo_CreateHistoryLog_Call) Run(run func(ctx context.Context, reqDB *modelDB.HistoryLog)) *DBRepo_CreateHistoryLog_Call
type DBRepo_CreateHistorySigning_Call ¶ added in v1.1.2
DBRepo_CreateHistorySigning_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateHistorySigning'
func (*DBRepo_CreateHistorySigning_Call) Return ¶ added in v1.1.2
func (_c *DBRepo_CreateHistorySigning_Call) Return(lastInsertID int64, err error) *DBRepo_CreateHistorySigning_Call
func (*DBRepo_CreateHistorySigning_Call) Run ¶ added in v1.1.2
func (_c *DBRepo_CreateHistorySigning_Call) Run(run func(ctx context.Context, reqDB *modelDB.Signing)) *DBRepo_CreateHistorySigning_Call
type DBRepo_CreateUserTx_Call ¶ added in v1.1.2
DBRepo_CreateUserTx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateUserTx'
func (*DBRepo_CreateUserTx_Call) Return ¶ added in v1.1.2
func (_c *DBRepo_CreateUserTx_Call) Return(lastInsertID int64, err error) *DBRepo_CreateUserTx_Call
func (*DBRepo_CreateUserTx_Call) Run ¶ added in v1.1.2
func (_c *DBRepo_CreateUserTx_Call) Run(run func(ctx context.Context, tx *sqlx.Tx, reqDB *modelDB.User)) *DBRepo_CreateUserTx_Call
type DBRepo_Expecter ¶ added in v1.1.2
type DBRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*DBRepo_Expecter) CreateHistoryLog ¶ added in v1.1.2
func (_e *DBRepo_Expecter) CreateHistoryLog(ctx interface{}, reqDB interface{}) *DBRepo_CreateHistoryLog_Call
CreateHistoryLog is a helper method to define mock.On call
- ctx context.Context
- reqDB *modelDB.HistoryLog
func (*DBRepo_Expecter) CreateHistoryLogTx ¶ added in v1.1.2
func (_e *DBRepo_Expecter) CreateHistoryLogTx(ctx interface{}, tx interface{}, reqDB interface{}) *DBRepo_CreateHistoryLogTx_Call
CreateHistoryLogTx is a helper method to define mock.On call
- ctx context.Context
- tx *sqlx.Tx
- reqDB *modelDB.HistoryLog
func (*DBRepo_Expecter) CreateHistorySigning ¶ added in v1.1.2
func (_e *DBRepo_Expecter) CreateHistorySigning(ctx interface{}, reqDB interface{}) *DBRepo_CreateHistorySigning_Call
CreateHistorySigning is a helper method to define mock.On call
- ctx context.Context
- reqDB *modelDB.Signing
func (*DBRepo_Expecter) CreateUserTx ¶ added in v1.1.2
func (_e *DBRepo_Expecter) CreateUserTx(ctx interface{}, tx interface{}, reqDB interface{}) *DBRepo_CreateUserTx_Call
CreateUserTx is a helper method to define mock.On call
- ctx context.Context
- tx *sqlx.Tx
- reqDB *modelDB.User
func (*DBRepo_Expecter) GetUserByEmail ¶ added in v1.1.2
func (_e *DBRepo_Expecter) GetUserByEmail(ctx interface{}, email interface{}) *DBRepo_GetUserByEmail_Call
GetUserByEmail is a helper method to define mock.On call
- ctx context.Context
- email string
func (*DBRepo_Expecter) TxBegin ¶ added in v1.1.2
func (_e *DBRepo_Expecter) TxBegin(ctx interface{}) *DBRepo_TxBegin_Call
TxBegin is a helper method to define mock.On call
- ctx context.Context
func (*DBRepo_Expecter) TxCommit ¶ added in v1.1.2
func (_e *DBRepo_Expecter) TxCommit(tx interface{}) *DBRepo_TxCommit_Call
TxCommit is a helper method to define mock.On call
- tx *sqlx.Tx
func (*DBRepo_Expecter) TxError ¶ added in v1.1.2
func (_e *DBRepo_Expecter) TxError(tx interface{}, err interface{}) *DBRepo_TxError_Call
TxError is a helper method to define mock.On call
- tx *sqlx.Tx
- err error
type DBRepo_GetUserByEmail_Call ¶ added in v1.1.2
DBRepo_GetUserByEmail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserByEmail'
func (*DBRepo_GetUserByEmail_Call) Return ¶ added in v1.1.2
func (_c *DBRepo_GetUserByEmail_Call) Return(respDB *modelDB.User, err error) *DBRepo_GetUserByEmail_Call
func (*DBRepo_GetUserByEmail_Call) Run ¶ added in v1.1.2
func (_c *DBRepo_GetUserByEmail_Call) Run(run func(ctx context.Context, email string)) *DBRepo_GetUserByEmail_Call
type DBRepo_TxBegin_Call ¶ added in v1.1.2
DBRepo_TxBegin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TxBegin'
func (*DBRepo_TxBegin_Call) Return ¶ added in v1.1.2
func (_c *DBRepo_TxBegin_Call) Return(_a0 *sqlx.Tx, _a1 error) *DBRepo_TxBegin_Call
func (*DBRepo_TxBegin_Call) Run ¶ added in v1.1.2
func (_c *DBRepo_TxBegin_Call) Run(run func(ctx context.Context)) *DBRepo_TxBegin_Call
type DBRepo_TxCommit_Call ¶ added in v1.1.2
DBRepo_TxCommit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TxCommit'
func (*DBRepo_TxCommit_Call) Return ¶ added in v1.1.2
func (_c *DBRepo_TxCommit_Call) Return(_a0 error) *DBRepo_TxCommit_Call
func (*DBRepo_TxCommit_Call) Run ¶ added in v1.1.2
func (_c *DBRepo_TxCommit_Call) Run(run func(tx *sqlx.Tx)) *DBRepo_TxCommit_Call
type DBRepo_TxError_Call ¶ added in v1.1.2
DBRepo_TxError_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TxError'
func (*DBRepo_TxError_Call) Return ¶ added in v1.1.2
func (_c *DBRepo_TxError_Call) Return(_a0 error) *DBRepo_TxError_Call
func (*DBRepo_TxError_Call) Run ¶ added in v1.1.2
func (_c *DBRepo_TxError_Call) Run(run func(tx *sqlx.Tx, err error)) *DBRepo_TxError_Call
type FirestoreRepo ¶
FirestoreRepo is an autogenerated mock type for the FirestoreRepo type
func NewFirestoreRepo ¶ added in v1.1.2
func NewFirestoreRepo(t mockConstructorTestingTNewFirestoreRepo) *FirestoreRepo
NewFirestoreRepo creates a new instance of FirestoreRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*FirestoreRepo) EXPECT ¶ added in v1.1.2
func (_m *FirestoreRepo) EXPECT() *FirestoreRepo_Expecter
func (*FirestoreRepo) GetAccount ¶
func (_m *FirestoreRepo) GetAccount(ctx context.Context) (interface{}, error)
GetAccount provides a mock function with given fields: ctx
type FirestoreRepo_Expecter ¶ added in v1.1.2
type FirestoreRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*FirestoreRepo_Expecter) GetAccount ¶ added in v1.1.2
func (_e *FirestoreRepo_Expecter) GetAccount(ctx interface{}) *FirestoreRepo_GetAccount_Call
GetAccount is a helper method to define mock.On call
- ctx context.Context
type FirestoreRepo_GetAccount_Call ¶ added in v1.1.2
FirestoreRepo_GetAccount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAccount'
func (*FirestoreRepo_GetAccount_Call) Return ¶ added in v1.1.2
func (_c *FirestoreRepo_GetAccount_Call) Return(oa interface{}, err error) *FirestoreRepo_GetAccount_Call
func (*FirestoreRepo_GetAccount_Call) Run ¶ added in v1.1.2
func (_c *FirestoreRepo_GetAccount_Call) Run(run func(ctx context.Context)) *FirestoreRepo_GetAccount_Call
type GrpcUsecase ¶
GrpcUsecase is an autogenerated mock type for the GrpcUsecase type
func NewGrpcUsecase ¶ added in v1.1.2
func NewGrpcUsecase(t mockConstructorTestingTNewGrpcUsecase) *GrpcUsecase
NewGrpcUsecase creates a new instance of GrpcUsecase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*GrpcUsecase) DoGetDetailMovie ¶
func (_m *GrpcUsecase) DoGetDetailMovie(ctx context.Context, req *service.GetDetailMovieReq) (*service.GetDetailMovieResp, error)
DoGetDetailMovie provides a mock function with given fields: ctx, req
func (*GrpcUsecase) DoGetListMovie ¶
func (_m *GrpcUsecase) DoGetListMovie(ctx context.Context, reqClient *service.GetListMovieReq) (*service.GetListMovieResp, *customError.Error)
DoGetListMovie provides a mock function with given fields: ctx, reqClient
func (*GrpcUsecase) EXPECT ¶ added in v1.1.2
func (_m *GrpcUsecase) EXPECT() *GrpcUsecase_Expecter
type GrpcUsecase_DoGetDetailMovie_Call ¶ added in v1.1.2
GrpcUsecase_DoGetDetailMovie_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DoGetDetailMovie'
func (*GrpcUsecase_DoGetDetailMovie_Call) Return ¶ added in v1.1.2
func (_c *GrpcUsecase_DoGetDetailMovie_Call) Return(resp *service.GetDetailMovieResp, err error) *GrpcUsecase_DoGetDetailMovie_Call
func (*GrpcUsecase_DoGetDetailMovie_Call) Run ¶ added in v1.1.2
func (_c *GrpcUsecase_DoGetDetailMovie_Call) Run(run func(ctx context.Context, req *service.GetDetailMovieReq)) *GrpcUsecase_DoGetDetailMovie_Call
type GrpcUsecase_DoGetListMovie_Call ¶ added in v1.1.2
GrpcUsecase_DoGetListMovie_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DoGetListMovie'
func (*GrpcUsecase_DoGetListMovie_Call) Return ¶ added in v1.1.2
func (_c *GrpcUsecase_DoGetListMovie_Call) Return(resp *service.GetListMovieResp, errResp *customError.Error) *GrpcUsecase_DoGetListMovie_Call
func (*GrpcUsecase_DoGetListMovie_Call) Run ¶ added in v1.1.2
func (_c *GrpcUsecase_DoGetListMovie_Call) Run(run func(ctx context.Context, reqClient *service.GetListMovieReq)) *GrpcUsecase_DoGetListMovie_Call
type GrpcUsecase_Expecter ¶ added in v1.1.2
type GrpcUsecase_Expecter struct {
// contains filtered or unexported fields
}
func (*GrpcUsecase_Expecter) DoGetDetailMovie ¶ added in v1.1.2
func (_e *GrpcUsecase_Expecter) DoGetDetailMovie(ctx interface{}, req interface{}) *GrpcUsecase_DoGetDetailMovie_Call
DoGetDetailMovie is a helper method to define mock.On call
- ctx context.Context
- req *service.GetDetailMovieReq
func (*GrpcUsecase_Expecter) DoGetListMovie ¶ added in v1.1.2
func (_e *GrpcUsecase_Expecter) DoGetListMovie(ctx interface{}, reqClient interface{}) *GrpcUsecase_DoGetListMovie_Call
DoGetListMovie is a helper method to define mock.On call
- ctx context.Context
- reqClient *service.GetListMovieReq
type HelpersRepo ¶
HelpersRepo is an autogenerated mock type for the HelpersRepo type
func NewHelpersRepo ¶ added in v1.1.2
func NewHelpersRepo(t mockConstructorTestingTNewHelpersRepo) *HelpersRepo
NewHelpersRepo creates a new instance of HelpersRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*HelpersRepo) EXPECT ¶ added in v1.1.2
func (_m *HelpersRepo) EXPECT() *HelpersRepo_Expecter
type HelpersRepo_Expecter ¶ added in v1.1.2
type HelpersRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*HelpersRepo_Expecter) Tes ¶ added in v1.1.2
func (_e *HelpersRepo_Expecter) Tes(ctx interface{}) *HelpersRepo_Tes_Call
Tes is a helper method to define mock.On call
- ctx context.Context
type HelpersRepo_Tes_Call ¶ added in v1.1.2
HelpersRepo_Tes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Tes'
func (*HelpersRepo_Tes_Call) Return ¶ added in v1.1.2
func (_c *HelpersRepo_Tes_Call) Return(_a0 bool) *HelpersRepo_Tes_Call
func (*HelpersRepo_Tes_Call) Run ¶ added in v1.1.2
func (_c *HelpersRepo_Tes_Call) Run(run func(ctx context.Context)) *HelpersRepo_Tes_Call
type OMDBRepo ¶
OMDBRepo is an autogenerated mock type for the OMDBRepo type
func NewOMDBRepo ¶ added in v1.1.2
func NewOMDBRepo(t mockConstructorTestingTNewOMDBRepo) *OMDBRepo
NewOMDBRepo creates a new instance of OMDBRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*OMDBRepo) EXPECT ¶ added in v1.1.2
func (_m *OMDBRepo) EXPECT() *OMDBRepo_Expecter
func (*OMDBRepo) GetDetailMovie ¶
func (_m *OMDBRepo) GetDetailMovie(movieID string) (*omdb.OMDBDetail, error)
GetDetailMovie provides a mock function with given fields: movieID
type OMDBRepo_Expecter ¶ added in v1.1.2
type OMDBRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*OMDBRepo_Expecter) GetDetailMovie ¶ added in v1.1.2
func (_e *OMDBRepo_Expecter) GetDetailMovie(movieID interface{}) *OMDBRepo_GetDetailMovie_Call
GetDetailMovie is a helper method to define mock.On call
- movieID string
func (*OMDBRepo_Expecter) GetListMovie ¶ added in v1.1.2
func (_e *OMDBRepo_Expecter) GetListMovie(search interface{}, page interface{}) *OMDBRepo_GetListMovie_Call
GetListMovie is a helper method to define mock.On call
- search string
- page int64
type OMDBRepo_GetDetailMovie_Call ¶ added in v1.1.2
OMDBRepo_GetDetailMovie_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDetailMovie'
func (*OMDBRepo_GetDetailMovie_Call) Return ¶ added in v1.1.2
func (_c *OMDBRepo_GetDetailMovie_Call) Return(_a0 *omdb.OMDBDetail, _a1 error) *OMDBRepo_GetDetailMovie_Call
func (*OMDBRepo_GetDetailMovie_Call) Run ¶ added in v1.1.2
func (_c *OMDBRepo_GetDetailMovie_Call) Run(run func(movieID string)) *OMDBRepo_GetDetailMovie_Call
type OMDBRepo_GetListMovie_Call ¶ added in v1.1.2
OMDBRepo_GetListMovie_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetListMovie'
func (*OMDBRepo_GetListMovie_Call) Return ¶ added in v1.1.2
func (_c *OMDBRepo_GetListMovie_Call) Return(_a0 *omdb.OMDBList, _a1 error) *OMDBRepo_GetListMovie_Call
func (*OMDBRepo_GetListMovie_Call) Run ¶ added in v1.1.2
func (_c *OMDBRepo_GetListMovie_Call) Run(run func(search string, page int64)) *OMDBRepo_GetListMovie_Call
type RestUsecase ¶
RestUsecase is an autogenerated mock type for the RestUsecase type
func NewRestUsecase ¶ added in v1.1.2
func NewRestUsecase(t mockConstructorTestingTNewRestUsecase) *RestUsecase
NewRestUsecase creates a new instance of RestUsecase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RestUsecase) DoGetDetailMovie ¶
func (_m *RestUsecase) DoGetDetailMovie(ctx *fiber.Ctx, movieID string) (*modelResp.DetailMovie, int, error)
DoGetDetailMovie provides a mock function with given fields: ctx, movieID
func (*RestUsecase) DoGetListMovie ¶
func (_m *RestUsecase) DoGetListMovie(ctx *fiber.Ctx, reqClient *modelReq.ListMovie) (*modelResp.ListMovie, int, error)
DoGetListMovie provides a mock function with given fields: ctx, reqClient
func (*RestUsecase) DoSigning ¶
func (_m *RestUsecase) DoSigning(ctx *fiber.Ctx, reqClient *modelReq.User) (*modelResp.User, int, error)
DoSigning provides a mock function with given fields: ctx, reqClient
func (*RestUsecase) DoSignup ¶
func (_m *RestUsecase) DoSignup(ctx *fiber.Ctx, reqClient *modelReq.User) (*modelResp.User, int, error)
DoSignup provides a mock function with given fields: ctx, reqClient
func (*RestUsecase) EXPECT ¶ added in v1.1.2
func (_m *RestUsecase) EXPECT() *RestUsecase_Expecter
type RestUsecase_DoGetDetailMovie_Call ¶ added in v1.1.2
RestUsecase_DoGetDetailMovie_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DoGetDetailMovie'
func (*RestUsecase_DoGetDetailMovie_Call) Return ¶ added in v1.1.2
func (_c *RestUsecase_DoGetDetailMovie_Call) Return(resp *modelResp.DetailMovie, httpCode int, err error) *RestUsecase_DoGetDetailMovie_Call
func (*RestUsecase_DoGetDetailMovie_Call) Run ¶ added in v1.1.2
func (_c *RestUsecase_DoGetDetailMovie_Call) Run(run func(ctx *fiber.Ctx, movieID string)) *RestUsecase_DoGetDetailMovie_Call
type RestUsecase_DoGetListMovie_Call ¶ added in v1.1.2
RestUsecase_DoGetListMovie_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DoGetListMovie'
func (*RestUsecase_DoGetListMovie_Call) Return ¶ added in v1.1.2
func (_c *RestUsecase_DoGetListMovie_Call) Return(resp *modelResp.ListMovie, httpCode int, err error) *RestUsecase_DoGetListMovie_Call
func (*RestUsecase_DoGetListMovie_Call) Run ¶ added in v1.1.2
func (_c *RestUsecase_DoGetListMovie_Call) Run(run func(ctx *fiber.Ctx, reqClient *modelReq.ListMovie)) *RestUsecase_DoGetListMovie_Call
type RestUsecase_DoSigning_Call ¶ added in v1.1.2
RestUsecase_DoSigning_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DoSigning'
func (*RestUsecase_DoSigning_Call) Return ¶ added in v1.1.2
func (_c *RestUsecase_DoSigning_Call) Return(resp *modelResp.User, httpCode int, err error) *RestUsecase_DoSigning_Call
func (*RestUsecase_DoSigning_Call) Run ¶ added in v1.1.2
func (_c *RestUsecase_DoSigning_Call) Run(run func(ctx *fiber.Ctx, reqClient *modelReq.User)) *RestUsecase_DoSigning_Call
type RestUsecase_DoSignup_Call ¶ added in v1.1.2
RestUsecase_DoSignup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DoSignup'
func (*RestUsecase_DoSignup_Call) Return ¶ added in v1.1.2
func (_c *RestUsecase_DoSignup_Call) Return(resp *modelResp.User, httpCode int, err error) *RestUsecase_DoSignup_Call
func (*RestUsecase_DoSignup_Call) Run ¶ added in v1.1.2
func (_c *RestUsecase_DoSignup_Call) Run(run func(ctx *fiber.Ctx, reqClient *modelReq.User)) *RestUsecase_DoSignup_Call
type RestUsecase_Expecter ¶ added in v1.1.2
type RestUsecase_Expecter struct {
// contains filtered or unexported fields
}
func (*RestUsecase_Expecter) DoGetDetailMovie ¶ added in v1.1.2
func (_e *RestUsecase_Expecter) DoGetDetailMovie(ctx interface{}, movieID interface{}) *RestUsecase_DoGetDetailMovie_Call
DoGetDetailMovie is a helper method to define mock.On call
- ctx *fiber.Ctx
- movieID string
func (*RestUsecase_Expecter) DoGetListMovie ¶ added in v1.1.2
func (_e *RestUsecase_Expecter) DoGetListMovie(ctx interface{}, reqClient interface{}) *RestUsecase_DoGetListMovie_Call
DoGetListMovie is a helper method to define mock.On call
- ctx *fiber.Ctx
- reqClient *modelReq.ListMovie
func (*RestUsecase_Expecter) DoSigning ¶ added in v1.1.2
func (_e *RestUsecase_Expecter) DoSigning(ctx interface{}, reqClient interface{}) *RestUsecase_DoSigning_Call
DoSigning is a helper method to define mock.On call
- ctx *fiber.Ctx
- reqClient *modelReq.User
func (*RestUsecase_Expecter) DoSignup ¶ added in v1.1.2
func (_e *RestUsecase_Expecter) DoSignup(ctx interface{}, reqClient interface{}) *RestUsecase_DoSignup_Call
DoSignup is a helper method to define mock.On call
- ctx *fiber.Ctx
- reqClient *modelReq.User
type SpotifyRepo ¶
SpotifyRepo is an autogenerated mock type for the SpotifyRepo type
func NewSpotifyRepo ¶ added in v1.1.2
func NewSpotifyRepo(t mockConstructorTestingTNewSpotifyRepo) *SpotifyRepo
NewSpotifyRepo creates a new instance of SpotifyRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SpotifyRepo) EXPECT ¶ added in v1.1.2
func (_m *SpotifyRepo) EXPECT() *SpotifyRepo_Expecter
type SpotifyRepo_Expecter ¶ added in v1.1.2
type SpotifyRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*SpotifyRepo_Expecter) GetUser ¶ added in v1.1.2
func (_e *SpotifyRepo_Expecter) GetUser() *SpotifyRepo_GetUser_Call
GetUser is a helper method to define mock.On call
type SpotifyRepo_GetUser_Call ¶ added in v1.1.2
SpotifyRepo_GetUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUser'
func (*SpotifyRepo_GetUser_Call) Return ¶ added in v1.1.2
func (_c *SpotifyRepo_GetUser_Call) Return(responseObject *spotify.Profile, err error) *SpotifyRepo_GetUser_Call
func (*SpotifyRepo_GetUser_Call) Run ¶ added in v1.1.2
func (_c *SpotifyRepo_GetUser_Call) Run(run func()) *SpotifyRepo_GetUser_Call
type UtilsRepo ¶
UtilsRepo is an autogenerated mock type for the UtilsRepo type
func NewUtilsRepo ¶ added in v1.1.2
func NewUtilsRepo(t mockConstructorTestingTNewUtilsRepo) *UtilsRepo
NewUtilsRepo creates a new instance of UtilsRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*UtilsRepo) CheckPasswordHash ¶
CheckPasswordHash provides a mock function with given fields: password, hash
func (*UtilsRepo) CurrentTimeF ¶
CurrentTimeF provides a mock function with given fields: format
func (*UtilsRepo) Decrypt ¶
Decrypt provides a mock function with given fields: passphrase, cipherText
func (*UtilsRepo) EXPECT ¶ added in v1.1.2
func (_m *UtilsRepo) EXPECT() *UtilsRepo_Expecter
func (*UtilsRepo) Encrypt ¶
Encrypt provides a mock function with given fields: passphrase, plaintext
func (*UtilsRepo) HashPassword ¶
HashPassword provides a mock function with given fields: password
type UtilsRepo_CheckPasswordHash_Call ¶ added in v1.1.2
UtilsRepo_CheckPasswordHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckPasswordHash'
func (*UtilsRepo_CheckPasswordHash_Call) Return ¶ added in v1.1.2
func (_c *UtilsRepo_CheckPasswordHash_Call) Return(_a0 bool) *UtilsRepo_CheckPasswordHash_Call
func (*UtilsRepo_CheckPasswordHash_Call) Run ¶ added in v1.1.2
func (_c *UtilsRepo_CheckPasswordHash_Call) Run(run func(password string, hash string)) *UtilsRepo_CheckPasswordHash_Call
type UtilsRepo_CurrentTimeF_Call ¶ added in v1.1.2
UtilsRepo_CurrentTimeF_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CurrentTimeF'
func (*UtilsRepo_CurrentTimeF_Call) Return ¶ added in v1.1.2
func (_c *UtilsRepo_CurrentTimeF_Call) Return(_a0 string, _a1 error) *UtilsRepo_CurrentTimeF_Call
func (*UtilsRepo_CurrentTimeF_Call) Run ¶ added in v1.1.2
func (_c *UtilsRepo_CurrentTimeF_Call) Run(run func(format string)) *UtilsRepo_CurrentTimeF_Call
type UtilsRepo_Decrypt_Call ¶ added in v1.1.2
UtilsRepo_Decrypt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Decrypt'
func (*UtilsRepo_Decrypt_Call) Return ¶ added in v1.1.2
func (_c *UtilsRepo_Decrypt_Call) Return(plainText string, err error) *UtilsRepo_Decrypt_Call
func (*UtilsRepo_Decrypt_Call) Run ¶ added in v1.1.2
func (_c *UtilsRepo_Decrypt_Call) Run(run func(passphrase string, cipherText string)) *UtilsRepo_Decrypt_Call
type UtilsRepo_Encrypt_Call ¶ added in v1.1.2
UtilsRepo_Encrypt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Encrypt'
func (*UtilsRepo_Encrypt_Call) Return ¶ added in v1.1.2
func (_c *UtilsRepo_Encrypt_Call) Return(cipherText string, err error) *UtilsRepo_Encrypt_Call
func (*UtilsRepo_Encrypt_Call) Run ¶ added in v1.1.2
func (_c *UtilsRepo_Encrypt_Call) Run(run func(passphrase string, plaintext string)) *UtilsRepo_Encrypt_Call
type UtilsRepo_Expecter ¶ added in v1.1.2
type UtilsRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*UtilsRepo_Expecter) CheckPasswordHash ¶ added in v1.1.2
func (_e *UtilsRepo_Expecter) CheckPasswordHash(password interface{}, hash interface{}) *UtilsRepo_CheckPasswordHash_Call
CheckPasswordHash is a helper method to define mock.On call
- password string
- hash string
func (*UtilsRepo_Expecter) CurrentTimeF ¶ added in v1.1.2
func (_e *UtilsRepo_Expecter) CurrentTimeF(format interface{}) *UtilsRepo_CurrentTimeF_Call
CurrentTimeF is a helper method to define mock.On call
- format string
func (*UtilsRepo_Expecter) Decrypt ¶ added in v1.1.2
func (_e *UtilsRepo_Expecter) Decrypt(passphrase interface{}, cipherText interface{}) *UtilsRepo_Decrypt_Call
Decrypt is a helper method to define mock.On call
- passphrase string
- cipherText string
func (*UtilsRepo_Expecter) Encrypt ¶ added in v1.1.2
func (_e *UtilsRepo_Expecter) Encrypt(passphrase interface{}, plaintext interface{}) *UtilsRepo_Encrypt_Call
Encrypt is a helper method to define mock.On call
- passphrase string
- plaintext string
func (*UtilsRepo_Expecter) HashPassword ¶ added in v1.1.2
func (_e *UtilsRepo_Expecter) HashPassword(password interface{}) *UtilsRepo_HashPassword_Call
HashPassword is a helper method to define mock.On call
- password string
func (*UtilsRepo_Expecter) ToMap ¶ added in v1.1.2
func (_e *UtilsRepo_Expecter) ToMap(v interface{}) *UtilsRepo_ToMap_Call
ToMap is a helper method to define mock.On call
- v interface{}
func (*UtilsRepo_Expecter) ToStruct ¶ added in v1.1.2
func (_e *UtilsRepo_Expecter) ToStruct(v interface{}, r interface{}) *UtilsRepo_ToStruct_Call
ToStruct is a helper method to define mock.On call
- v map[string]interface{}
- r interface{}
type UtilsRepo_HashPassword_Call ¶ added in v1.1.2
UtilsRepo_HashPassword_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HashPassword'
func (*UtilsRepo_HashPassword_Call) Return ¶ added in v1.1.2
func (_c *UtilsRepo_HashPassword_Call) Return(_a0 string, _a1 error) *UtilsRepo_HashPassword_Call
func (*UtilsRepo_HashPassword_Call) Run ¶ added in v1.1.2
func (_c *UtilsRepo_HashPassword_Call) Run(run func(password string)) *UtilsRepo_HashPassword_Call
type UtilsRepo_ToMap_Call ¶ added in v1.1.2
UtilsRepo_ToMap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ToMap'
func (*UtilsRepo_ToMap_Call) Return ¶ added in v1.1.2
func (_c *UtilsRepo_ToMap_Call) Return(r map[string]interface{}) *UtilsRepo_ToMap_Call
func (*UtilsRepo_ToMap_Call) Run ¶ added in v1.1.2
func (_c *UtilsRepo_ToMap_Call) Run(run func(v interface{})) *UtilsRepo_ToMap_Call
type UtilsRepo_ToStruct_Call ¶ added in v1.1.2
UtilsRepo_ToStruct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ToStruct'
func (*UtilsRepo_ToStruct_Call) Return ¶ added in v1.1.2
func (_c *UtilsRepo_ToStruct_Call) Return(err error) *UtilsRepo_ToStruct_Call
func (*UtilsRepo_ToStruct_Call) Run ¶ added in v1.1.2
func (_c *UtilsRepo_ToStruct_Call) Run(run func(v map[string]interface{}, r interface{})) *UtilsRepo_ToStruct_Call