Documentation
¶
Index ¶
- type Repository
- type Repository_Expecter
- type Repository_GetByOrgID_Call
- func (_c *Repository_GetByOrgID_Call) Return(_a0 kyc.KYC, _a1 error) *Repository_GetByOrgID_Call
- func (_c *Repository_GetByOrgID_Call) Run(run func(_a0 context.Context, _a1 string)) *Repository_GetByOrgID_Call
- func (_c *Repository_GetByOrgID_Call) RunAndReturn(run func(context.Context, string) (kyc.KYC, error)) *Repository_GetByOrgID_Call
- type Repository_List_Call
- type Repository_Upsert_Call
- func (_c *Repository_Upsert_Call) Return(_a0 kyc.KYC, _a1 error) *Repository_Upsert_Call
- func (_c *Repository_Upsert_Call) Run(run func(_a0 context.Context, _a1 kyc.KYC)) *Repository_Upsert_Call
- func (_c *Repository_Upsert_Call) RunAndReturn(run func(context.Context, kyc.KYC) (kyc.KYC, error)) *Repository_Upsert_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func NewRepository ¶
func NewRepository(t interface { mock.TestingT Cleanup(func()) }) *Repository
NewRepository creates a new instance of Repository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Repository) EXPECT ¶
func (_m *Repository) EXPECT() *Repository_Expecter
func (*Repository) GetByOrgID ¶
GetByOrgID provides a mock function with given fields: _a0, _a1
type Repository_Expecter ¶
type Repository_Expecter struct {
// contains filtered or unexported fields
}
func (*Repository_Expecter) GetByOrgID ¶
func (_e *Repository_Expecter) GetByOrgID(_a0 interface{}, _a1 interface{}) *Repository_GetByOrgID_Call
GetByOrgID is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*Repository_Expecter) List ¶ added in v0.57.0
func (_e *Repository_Expecter) List(_a0 interface{}) *Repository_List_Call
List is a helper method to define mock.On call
- _a0 context.Context
func (*Repository_Expecter) Upsert ¶
func (_e *Repository_Expecter) Upsert(_a0 interface{}, _a1 interface{}) *Repository_Upsert_Call
Upsert is a helper method to define mock.On call
- _a0 context.Context
- _a1 kyc.KYC
type Repository_GetByOrgID_Call ¶
Repository_GetByOrgID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByOrgID'
func (*Repository_GetByOrgID_Call) Return ¶
func (_c *Repository_GetByOrgID_Call) Return(_a0 kyc.KYC, _a1 error) *Repository_GetByOrgID_Call
func (*Repository_GetByOrgID_Call) Run ¶
func (_c *Repository_GetByOrgID_Call) Run(run func(_a0 context.Context, _a1 string)) *Repository_GetByOrgID_Call
func (*Repository_GetByOrgID_Call) RunAndReturn ¶
func (_c *Repository_GetByOrgID_Call) RunAndReturn(run func(context.Context, string) (kyc.KYC, error)) *Repository_GetByOrgID_Call
type Repository_List_Call ¶ added in v0.57.0
Repository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*Repository_List_Call) Return ¶ added in v0.57.0
func (_c *Repository_List_Call) Return(_a0 []kyc.KYC, _a1 error) *Repository_List_Call
func (*Repository_List_Call) Run ¶ added in v0.57.0
func (_c *Repository_List_Call) Run(run func(_a0 context.Context)) *Repository_List_Call
func (*Repository_List_Call) RunAndReturn ¶ added in v0.57.0
func (_c *Repository_List_Call) RunAndReturn(run func(context.Context) ([]kyc.KYC, error)) *Repository_List_Call
type Repository_Upsert_Call ¶
Repository_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
func (*Repository_Upsert_Call) Return ¶
func (_c *Repository_Upsert_Call) Return(_a0 kyc.KYC, _a1 error) *Repository_Upsert_Call
func (*Repository_Upsert_Call) Run ¶
func (_c *Repository_Upsert_Call) Run(run func(_a0 context.Context, _a1 kyc.KYC)) *Repository_Upsert_Call
func (*Repository_Upsert_Call) RunAndReturn ¶
func (_c *Repository_Upsert_Call) RunAndReturn(run func(context.Context, kyc.KYC) (kyc.KYC, error)) *Repository_Upsert_Call