Documentation
¶
Index ¶
- type ProjectService
- type ProjectService_Expecter
- type ProjectService_ListByUser_Call
- type Repository
- type Repository_Expecter
- type Repository_Search_Call
- func (_c *Repository_Search_Call) Return(_a0 orgpats.OrganizationPATs, _a1 error) *Repository_Search_Call
- func (_c *Repository_Search_Call) Run(run func(ctx context.Context, orgID string, query *rql.Query)) *Repository_Search_Call
- func (_c *Repository_Search_Call) RunAndReturn(...) *Repository_Search_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProjectService ¶
ProjectService is an autogenerated mock type for the ProjectService type
func NewProjectService ¶
func NewProjectService(t interface {
mock.TestingT
Cleanup(func())
}) *ProjectService
NewProjectService creates a new instance of ProjectService. 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 (*ProjectService) EXPECT ¶
func (_m *ProjectService) EXPECT() *ProjectService_Expecter
func (*ProjectService) ListByUser ¶
func (_m *ProjectService) ListByUser(ctx context.Context, principal authenticate.Principal, flt project.Filter) ([]project.Project, error)
ListByUser provides a mock function with given fields: ctx, principal, flt
type ProjectService_Expecter ¶
type ProjectService_Expecter struct {
// contains filtered or unexported fields
}
func (*ProjectService_Expecter) ListByUser ¶
func (_e *ProjectService_Expecter) ListByUser(ctx interface{}, principal interface{}, flt interface{}) *ProjectService_ListByUser_Call
ListByUser is a helper method to define mock.On call
- ctx context.Context
- principal authenticate.Principal
- flt project.Filter
type ProjectService_ListByUser_Call ¶
ProjectService_ListByUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByUser'
func (*ProjectService_ListByUser_Call) Return ¶
func (_c *ProjectService_ListByUser_Call) Return(_a0 []project.Project, _a1 error) *ProjectService_ListByUser_Call
func (*ProjectService_ListByUser_Call) Run ¶
func (_c *ProjectService_ListByUser_Call) Run(run func(ctx context.Context, principal authenticate.Principal, flt project.Filter)) *ProjectService_ListByUser_Call
func (*ProjectService_ListByUser_Call) RunAndReturn ¶
func (_c *ProjectService_ListByUser_Call) RunAndReturn(run func(context.Context, authenticate.Principal, project.Filter) ([]project.Project, error)) *ProjectService_ListByUser_Call
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
type Repository_Expecter ¶
type Repository_Expecter struct {
// contains filtered or unexported fields
}
func (*Repository_Expecter) Search ¶
func (_e *Repository_Expecter) Search(ctx interface{}, orgID interface{}, query interface{}) *Repository_Search_Call
Search is a helper method to define mock.On call
- ctx context.Context
- orgID string
- query *rql.Query
type Repository_Search_Call ¶
Repository_Search_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Search'
func (*Repository_Search_Call) Return ¶
func (_c *Repository_Search_Call) Return(_a0 orgpats.OrganizationPATs, _a1 error) *Repository_Search_Call
func (*Repository_Search_Call) Run ¶
func (_c *Repository_Search_Call) Run(run func(ctx context.Context, orgID string, query *rql.Query)) *Repository_Search_Call
func (*Repository_Search_Call) RunAndReturn ¶
func (_c *Repository_Search_Call) RunAndReturn(run func(context.Context, string, *rql.Query) (orgpats.OrganizationPATs, error)) *Repository_Search_Call