Documentation
¶
Index ¶
- type Repository
- func (_m *Repository) Create(ctx context.Context, _a1 prospect.Prospect) (prospect.Prospect, error)
- func (_m *Repository) Delete(ctx context.Context, id string) error
- func (_m *Repository) EXPECT() *Repository_Expecter
- func (_m *Repository) Get(ctx context.Context, id string) (prospect.Prospect, error)
- func (_m *Repository) List(ctx context.Context, query *rql.Query) (prospect.ListProspects, error)
- func (_m *Repository) Update(ctx context.Context, _a1 prospect.Prospect) (prospect.Prospect, error)
- type Repository_Create_Call
- func (_c *Repository_Create_Call) Return(_a0 prospect.Prospect, _a1 error) *Repository_Create_Call
- func (_c *Repository_Create_Call) Run(run func(ctx context.Context, _a1 prospect.Prospect)) *Repository_Create_Call
- func (_c *Repository_Create_Call) RunAndReturn(run func(context.Context, prospect.Prospect) (prospect.Prospect, error)) *Repository_Create_Call
- type Repository_Delete_Call
- type Repository_Expecter
- func (_e *Repository_Expecter) Create(ctx interface{}, _a1 interface{}) *Repository_Create_Call
- func (_e *Repository_Expecter) Delete(ctx interface{}, id interface{}) *Repository_Delete_Call
- func (_e *Repository_Expecter) Get(ctx interface{}, id interface{}) *Repository_Get_Call
- func (_e *Repository_Expecter) List(ctx interface{}, query interface{}) *Repository_List_Call
- func (_e *Repository_Expecter) Update(ctx interface{}, _a1 interface{}) *Repository_Update_Call
- type Repository_Get_Call
- func (_c *Repository_Get_Call) Return(_a0 prospect.Prospect, _a1 error) *Repository_Get_Call
- func (_c *Repository_Get_Call) Run(run func(ctx context.Context, id string)) *Repository_Get_Call
- func (_c *Repository_Get_Call) RunAndReturn(run func(context.Context, string) (prospect.Prospect, error)) *Repository_Get_Call
- type Repository_List_Call
- func (_c *Repository_List_Call) Return(_a0 prospect.ListProspects, _a1 error) *Repository_List_Call
- func (_c *Repository_List_Call) Run(run func(ctx context.Context, query *rql.Query)) *Repository_List_Call
- func (_c *Repository_List_Call) RunAndReturn(run func(context.Context, *rql.Query) (prospect.ListProspects, error)) *Repository_List_Call
- type Repository_Update_Call
- func (_c *Repository_Update_Call) Return(_a0 prospect.Prospect, _a1 error) *Repository_Update_Call
- func (_c *Repository_Update_Call) Run(run func(ctx context.Context, _a1 prospect.Prospect)) *Repository_Update_Call
- func (_c *Repository_Update_Call) RunAndReturn(run func(context.Context, prospect.Prospect) (prospect.Prospect, error)) *Repository_Update_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) Delete ¶
func (_m *Repository) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*Repository) EXPECT ¶
func (_m *Repository) EXPECT() *Repository_Expecter
func (*Repository) List ¶
func (_m *Repository) List(ctx context.Context, query *rql.Query) (prospect.ListProspects, error)
List provides a mock function with given fields: ctx, query
type Repository_Create_Call ¶
Repository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*Repository_Create_Call) Return ¶
func (_c *Repository_Create_Call) Return(_a0 prospect.Prospect, _a1 error) *Repository_Create_Call
func (*Repository_Create_Call) Run ¶
func (_c *Repository_Create_Call) Run(run func(ctx context.Context, _a1 prospect.Prospect)) *Repository_Create_Call
func (*Repository_Create_Call) RunAndReturn ¶
func (_c *Repository_Create_Call) RunAndReturn(run func(context.Context, prospect.Prospect) (prospect.Prospect, error)) *Repository_Create_Call
type Repository_Delete_Call ¶
Repository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*Repository_Delete_Call) Return ¶
func (_c *Repository_Delete_Call) Return(_a0 error) *Repository_Delete_Call
func (*Repository_Delete_Call) Run ¶
func (_c *Repository_Delete_Call) Run(run func(ctx context.Context, id string)) *Repository_Delete_Call
func (*Repository_Delete_Call) RunAndReturn ¶
func (_c *Repository_Delete_Call) RunAndReturn(run func(context.Context, string) error) *Repository_Delete_Call
type Repository_Expecter ¶
type Repository_Expecter struct {
// contains filtered or unexported fields
}
func (*Repository_Expecter) Create ¶
func (_e *Repository_Expecter) Create(ctx interface{}, _a1 interface{}) *Repository_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- _a1 prospect.Prospect
func (*Repository_Expecter) Delete ¶
func (_e *Repository_Expecter) Delete(ctx interface{}, id interface{}) *Repository_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id string
func (*Repository_Expecter) Get ¶
func (_e *Repository_Expecter) Get(ctx interface{}, id interface{}) *Repository_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id string
func (*Repository_Expecter) List ¶
func (_e *Repository_Expecter) List(ctx interface{}, query interface{}) *Repository_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- query *rql.Query
func (*Repository_Expecter) Update ¶
func (_e *Repository_Expecter) Update(ctx interface{}, _a1 interface{}) *Repository_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- _a1 prospect.Prospect
type Repository_Get_Call ¶
Repository_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*Repository_Get_Call) Return ¶
func (_c *Repository_Get_Call) Return(_a0 prospect.Prospect, _a1 error) *Repository_Get_Call
func (*Repository_Get_Call) Run ¶
func (_c *Repository_Get_Call) Run(run func(ctx context.Context, id string)) *Repository_Get_Call
func (*Repository_Get_Call) RunAndReturn ¶
func (_c *Repository_Get_Call) RunAndReturn(run func(context.Context, string) (prospect.Prospect, error)) *Repository_Get_Call
type Repository_List_Call ¶
Repository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*Repository_List_Call) Return ¶
func (_c *Repository_List_Call) Return(_a0 prospect.ListProspects, _a1 error) *Repository_List_Call
func (*Repository_List_Call) Run ¶
func (_c *Repository_List_Call) Run(run func(ctx context.Context, query *rql.Query)) *Repository_List_Call
func (*Repository_List_Call) RunAndReturn ¶
func (_c *Repository_List_Call) RunAndReturn(run func(context.Context, *rql.Query) (prospect.ListProspects, error)) *Repository_List_Call
type Repository_Update_Call ¶
Repository_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*Repository_Update_Call) Return ¶
func (_c *Repository_Update_Call) Return(_a0 prospect.Prospect, _a1 error) *Repository_Update_Call
func (*Repository_Update_Call) Run ¶
func (_c *Repository_Update_Call) Run(run func(ctx context.Context, _a1 prospect.Prospect)) *Repository_Update_Call
func (*Repository_Update_Call) RunAndReturn ¶
func (_c *Repository_Update_Call) RunAndReturn(run func(context.Context, prospect.Prospect) (prospect.Prospect, error)) *Repository_Update_Call