mocks

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheRepo

type CacheRepo struct {
	mock.Mock
}

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

func (_m *CacheRepo) DecrKYCByStatus(ctx context.Context, statusKYC int64) error

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

func (_m *CacheRepo) GetDetailMovie(ctx context.Context, movieID string) (*omdb.OMDBDetail, error)

GetDetailMovie provides a mock function with given fields: ctx, movieID

func (*CacheRepo) GetKYCByStatus

func (_m *CacheRepo) GetKYCByStatus(ctx context.Context, statusKYC int64) (int, error)

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

func (_m *CacheRepo) IncrKYCByStatus(ctx context.Context, statusKYC int64) error

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

func (_m *CacheRepo) SetKYCByStatus(ctx context.Context, statusKYC int64, value int) error

SetKYCByStatus provides a mock function with given fields: ctx, statusKYC, value

func (*CacheRepo) SetListMovie

func (_m *CacheRepo) SetListMovie(ctx context.Context, search string, page int64, req *omdb.OMDBList) error

SetListMovie provides a mock function with given fields: ctx, search, page, req

type CacheRepo_DecrKYCByStatus_Call added in v1.1.2

type CacheRepo_DecrKYCByStatus_Call struct {
	*mock.Call
}

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 (*CacheRepo_DecrKYCByStatus_Call) Run added in v1.1.2

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

type CacheRepo_GetDetailMovie_Call struct {
	*mock.Call
}

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 (*CacheRepo_GetDetailMovie_Call) Run added in v1.1.2

type CacheRepo_GetKYCByStatus_Call added in v1.1.2

type CacheRepo_GetKYCByStatus_Call struct {
	*mock.Call
}

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 (*CacheRepo_GetKYCByStatus_Call) Run added in v1.1.2

type CacheRepo_GetListMovie_Call added in v1.1.2

type CacheRepo_GetListMovie_Call struct {
	*mock.Call
}

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 (*CacheRepo_GetListMovie_Call) Run added in v1.1.2

type CacheRepo_IncrKYCByStatus_Call added in v1.1.2

type CacheRepo_IncrKYCByStatus_Call struct {
	*mock.Call
}

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 (*CacheRepo_IncrKYCByStatus_Call) Run added in v1.1.2

type CacheRepo_SetDetailMovie_Call added in v1.1.2

type CacheRepo_SetDetailMovie_Call struct {
	*mock.Call
}

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 (*CacheRepo_SetDetailMovie_Call) Run added in v1.1.2

type CacheRepo_SetKYCByStatus_Call added in v1.1.2

type CacheRepo_SetKYCByStatus_Call struct {
	*mock.Call
}

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 (*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

type CacheRepo_SetListMovie_Call struct {
	*mock.Call
}

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 (*CacheRepo_SetListMovie_Call) Run added in v1.1.2

type CallWrapperRepo

type CallWrapperRepo struct {
	mock.Mock
}

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 (*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

type CallWrapperRepo_Call_Call struct {
	*mock.Call
}

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

type CallWrapperRepo_GetWrapper_Call struct {
	*mock.Call
}

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 (*CallWrapperRepo_GetWrapper_Call) Run added in v1.1.2

type ConsumerUsecase

type ConsumerUsecase struct {
	mock.Mock
}

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

type ConsumerUsecase_DoPayment_Call added in v1.1.2

type ConsumerUsecase_DoPayment_Call struct {
	*mock.Call
}

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 (*ConsumerUsecase_DoPayment_Call) Run added in v1.1.2

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

type CronUsecase struct {
	mock.Mock
}

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

type CronUsecase_DoCreateDummyData_Call struct {
	*mock.Call
}

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 (*CronUsecase_DoCreateDummyData_Call) Run added in v1.1.2

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

type DBRepo struct {
	mock.Mock
}

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

func (_m *DBRepo) CreateHistoryLog(ctx context.Context, reqDB *modelDB.HistoryLog) (int64, error)

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

func (_m *DBRepo) CreateHistorySigning(ctx context.Context, reqDB *modelDB.Signing) (int64, error)

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

func (_m *DBRepo) GetUserByEmail(ctx context.Context, email string) (*modelDB.User, error)

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

func (*DBRepo) TxBegin

func (_m *DBRepo) TxBegin(ctx context.Context) (*sqlx.Tx, error)

TxBegin provides a mock function with given fields: ctx

func (*DBRepo) TxCommit

func (_m *DBRepo) TxCommit(tx *sqlx.Tx) error

TxCommit provides a mock function with given fields: tx

func (*DBRepo) TxError

func (_m *DBRepo) TxError(tx *sqlx.Tx, err error) error

TxError provides a mock function with given fields: tx, err

type DBRepo_CreateHistoryLogTx_Call added in v1.1.2

type DBRepo_CreateHistoryLogTx_Call struct {
	*mock.Call
}

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 (*DBRepo_CreateHistoryLogTx_Call) Run added in v1.1.2

type DBRepo_CreateHistoryLog_Call added in v1.1.2

type DBRepo_CreateHistoryLog_Call struct {
	*mock.Call
}

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 (*DBRepo_CreateHistoryLog_Call) Run added in v1.1.2

type DBRepo_CreateHistorySigning_Call added in v1.1.2

type DBRepo_CreateHistorySigning_Call struct {
	*mock.Call
}

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 (*DBRepo_CreateHistorySigning_Call) Run added in v1.1.2

type DBRepo_CreateUserTx_Call added in v1.1.2

type DBRepo_CreateUserTx_Call struct {
	*mock.Call
}

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

type DBRepo_GetUserByEmail_Call struct {
	*mock.Call
}

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 (*DBRepo_GetUserByEmail_Call) Run added in v1.1.2

type DBRepo_TxBegin_Call added in v1.1.2

type DBRepo_TxBegin_Call struct {
	*mock.Call
}

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

type DBRepo_TxCommit_Call struct {
	*mock.Call
}

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 (*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

type DBRepo_TxError_Call struct {
	*mock.Call
}

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 (*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

type FirestoreRepo struct {
	mock.Mock
}

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

type FirestoreRepo_GetAccount_Call struct {
	*mock.Call
}

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

type GrpcUsecase

type GrpcUsecase struct {
	mock.Mock
}

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

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

type GrpcUsecase_DoGetDetailMovie_Call struct {
	*mock.Call
}

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 (*GrpcUsecase_DoGetDetailMovie_Call) Run added in v1.1.2

type GrpcUsecase_DoGetListMovie_Call added in v1.1.2

type GrpcUsecase_DoGetListMovie_Call struct {
	*mock.Call
}

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 (*GrpcUsecase_DoGetListMovie_Call) Run added in v1.1.2

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

type HelpersRepo struct {
	mock.Mock
}

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

func (*HelpersRepo) Tes

func (_m *HelpersRepo) Tes(ctx context.Context) bool

Tes provides a mock function with given fields: ctx

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

type HelpersRepo_Tes_Call struct {
	*mock.Call
}

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 (*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

type OMDBRepo struct {
	mock.Mock
}

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

func (*OMDBRepo) GetListMovie

func (_m *OMDBRepo) GetListMovie(search string, page int64) (*omdb.OMDBList, error)

GetListMovie provides a mock function with given fields: search, page

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

type OMDBRepo_GetDetailMovie_Call struct {
	*mock.Call
}

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 (*OMDBRepo_GetDetailMovie_Call) Run added in v1.1.2

type OMDBRepo_GetListMovie_Call added in v1.1.2

type OMDBRepo_GetListMovie_Call struct {
	*mock.Call
}

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 (*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

type RestUsecase struct {
	mock.Mock
}

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

type RestUsecase_DoGetDetailMovie_Call struct {
	*mock.Call
}

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 (*RestUsecase_DoGetDetailMovie_Call) Run added in v1.1.2

type RestUsecase_DoGetListMovie_Call added in v1.1.2

type RestUsecase_DoGetListMovie_Call struct {
	*mock.Call
}

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 (*RestUsecase_DoGetListMovie_Call) Run added in v1.1.2

type RestUsecase_DoSigning_Call added in v1.1.2

type RestUsecase_DoSigning_Call struct {
	*mock.Call
}

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 (*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

type RestUsecase_DoSignup_Call struct {
	*mock.Call
}

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

type SpotifyRepo struct {
	mock.Mock
}

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

func (*SpotifyRepo) GetUser

func (_m *SpotifyRepo) GetUser() (*spotify.Profile, error)

GetUser provides a mock function with given fields:

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

GetUser is a helper method to define mock.On call

type SpotifyRepo_GetUser_Call added in v1.1.2

type SpotifyRepo_GetUser_Call struct {
	*mock.Call
}

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

type UtilsRepo

type UtilsRepo struct {
	mock.Mock
}

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

func (_m *UtilsRepo) CheckPasswordHash(password string, hash string) bool

CheckPasswordHash provides a mock function with given fields: password, hash

func (*UtilsRepo) CurrentTimeF

func (_m *UtilsRepo) CurrentTimeF(format string) (string, error)

CurrentTimeF provides a mock function with given fields: format

func (*UtilsRepo) Decrypt

func (_m *UtilsRepo) Decrypt(passphrase string, cipherText string) (string, error)

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

func (_m *UtilsRepo) Encrypt(passphrase string, plaintext string) (string, error)

Encrypt provides a mock function with given fields: passphrase, plaintext

func (*UtilsRepo) HashPassword

func (_m *UtilsRepo) HashPassword(password string) (string, error)

HashPassword provides a mock function with given fields: password

func (*UtilsRepo) ToMap

func (_m *UtilsRepo) ToMap(v interface{}) map[string]interface{}

ToMap provides a mock function with given fields: v

func (*UtilsRepo) ToStruct

func (_m *UtilsRepo) ToStruct(v map[string]interface{}, r interface{}) error

ToStruct provides a mock function with given fields: v, r

type UtilsRepo_CheckPasswordHash_Call added in v1.1.2

type UtilsRepo_CheckPasswordHash_Call struct {
	*mock.Call
}

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 (*UtilsRepo_CheckPasswordHash_Call) Run added in v1.1.2

type UtilsRepo_CurrentTimeF_Call added in v1.1.2

type UtilsRepo_CurrentTimeF_Call struct {
	*mock.Call
}

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 (*UtilsRepo_CurrentTimeF_Call) Run added in v1.1.2

type UtilsRepo_Decrypt_Call added in v1.1.2

type UtilsRepo_Decrypt_Call struct {
	*mock.Call
}

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

type UtilsRepo_Encrypt_Call struct {
	*mock.Call
}

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

type UtilsRepo_HashPassword_Call struct {
	*mock.Call
}

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 (*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

type UtilsRepo_ToMap_Call struct {
	*mock.Call
}

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

type UtilsRepo_ToStruct_Call struct {
	*mock.Call
}

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 (*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

Jump to

Keyboard shortcuts

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