Documentation
¶
Index ¶
- type AuditRecordRepository
- type AuditRecordRepository_Create_Call
- func (_c *AuditRecordRepository_Create_Call) Return(_a0 models.AuditRecord, _a1 error) *AuditRecordRepository_Create_Call
- func (_c *AuditRecordRepository_Create_Call) Run(run func(ctx context.Context, auditRecord models.AuditRecord)) *AuditRecordRepository_Create_Call
- func (_c *AuditRecordRepository_Create_Call) RunAndReturn(run func(context.Context, models.AuditRecord) (models.AuditRecord, error)) *AuditRecordRepository_Create_Call
- type AuditRecordRepository_Expecter
- type GroupService
- type GroupService_Expecter
- type GroupService_Get_Call
- func (_c *GroupService_Get_Call) Return(_a0 group.Group, _a1 error) *GroupService_Get_Call
- func (_c *GroupService_Get_Call) Run(run func(ctx context.Context, idOrName string)) *GroupService_Get_Call
- func (_c *GroupService_Get_Call) RunAndReturn(run func(context.Context, string) (group.Group, error)) *GroupService_Get_Call
- type GroupService_List_Call
- func (_c *GroupService_List_Call) Return(_a0 []group.Group, _a1 error) *GroupService_List_Call
- func (_c *GroupService_List_Call) Run(run func(ctx context.Context, flt group.Filter)) *GroupService_List_Call
- func (_c *GroupService_List_Call) RunAndReturn(run func(context.Context, group.Filter) ([]group.Group, error)) *GroupService_List_Call
- type OrgService
- type OrgService_Expecter
- type OrgService_Get_Call
- func (_c *OrgService_Get_Call) Return(_a0 organization.Organization, _a1 error) *OrgService_Get_Call
- func (_c *OrgService_Get_Call) Run(run func(ctx context.Context, idOrName string)) *OrgService_Get_Call
- func (_c *OrgService_Get_Call) RunAndReturn(run func(context.Context, string) (organization.Organization, error)) *OrgService_Get_Call
- type PolicyService
- func (_m *PolicyService) Create(ctx context.Context, pol policy.Policy) (policy.Policy, error)
- func (_m *PolicyService) Delete(ctx context.Context, id string) error
- func (_m *PolicyService) EXPECT() *PolicyService_Expecter
- func (_m *PolicyService) List(ctx context.Context, flt policy.Filter) ([]policy.Policy, error)
- type PolicyService_Create_Call
- func (_c *PolicyService_Create_Call) Return(_a0 policy.Policy, _a1 error) *PolicyService_Create_Call
- func (_c *PolicyService_Create_Call) Run(run func(ctx context.Context, pol policy.Policy)) *PolicyService_Create_Call
- func (_c *PolicyService_Create_Call) RunAndReturn(run func(context.Context, policy.Policy) (policy.Policy, error)) *PolicyService_Create_Call
- type PolicyService_Delete_Call
- func (_c *PolicyService_Delete_Call) Return(_a0 error) *PolicyService_Delete_Call
- func (_c *PolicyService_Delete_Call) Run(run func(ctx context.Context, id string)) *PolicyService_Delete_Call
- func (_c *PolicyService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *PolicyService_Delete_Call
- type PolicyService_Expecter
- func (_e *PolicyService_Expecter) Create(ctx interface{}, pol interface{}) *PolicyService_Create_Call
- func (_e *PolicyService_Expecter) Delete(ctx interface{}, id interface{}) *PolicyService_Delete_Call
- func (_e *PolicyService_Expecter) List(ctx interface{}, flt interface{}) *PolicyService_List_Call
- type PolicyService_List_Call
- func (_c *PolicyService_List_Call) Return(_a0 []policy.Policy, _a1 error) *PolicyService_List_Call
- func (_c *PolicyService_List_Call) Run(run func(ctx context.Context, flt policy.Filter)) *PolicyService_List_Call
- func (_c *PolicyService_List_Call) RunAndReturn(run func(context.Context, policy.Filter) ([]policy.Policy, error)) *PolicyService_List_Call
- type ProjectService
- type ProjectService_Expecter
- type ProjectService_Get_Call
- func (_c *ProjectService_Get_Call) Return(_a0 project.Project, _a1 error) *ProjectService_Get_Call
- func (_c *ProjectService_Get_Call) Run(run func(ctx context.Context, idOrName string)) *ProjectService_Get_Call
- func (_c *ProjectService_Get_Call) RunAndReturn(run func(context.Context, string) (project.Project, error)) *ProjectService_Get_Call
- type ProjectService_List_Call
- func (_c *ProjectService_List_Call) Return(_a0 []project.Project, _a1 error) *ProjectService_List_Call
- func (_c *ProjectService_List_Call) Run(run func(ctx context.Context, flt project.Filter)) *ProjectService_List_Call
- func (_c *ProjectService_List_Call) RunAndReturn(run func(context.Context, project.Filter) ([]project.Project, error)) *ProjectService_List_Call
- type RelationService
- type RelationService_Create_Call
- func (_c *RelationService_Create_Call) Return(_a0 relation.Relation, _a1 error) *RelationService_Create_Call
- func (_c *RelationService_Create_Call) Run(run func(ctx context.Context, rel relation.Relation)) *RelationService_Create_Call
- func (_c *RelationService_Create_Call) RunAndReturn(run func(context.Context, relation.Relation) (relation.Relation, error)) *RelationService_Create_Call
- type RelationService_Delete_Call
- func (_c *RelationService_Delete_Call) Return(_a0 error) *RelationService_Delete_Call
- func (_c *RelationService_Delete_Call) Run(run func(ctx context.Context, rel relation.Relation)) *RelationService_Delete_Call
- func (_c *RelationService_Delete_Call) RunAndReturn(run func(context.Context, relation.Relation) error) *RelationService_Delete_Call
- type RelationService_Expecter
- type RoleService
- type RoleService_Expecter
- type RoleService_Get_Call
- func (_c *RoleService_Get_Call) Return(_a0 role.Role, _a1 error) *RoleService_Get_Call
- func (_c *RoleService_Get_Call) Run(run func(ctx context.Context, idOrName string)) *RoleService_Get_Call
- func (_c *RoleService_Get_Call) RunAndReturn(run func(context.Context, string) (role.Role, error)) *RoleService_Get_Call
- type ServiceuserService
- type ServiceuserService_Expecter
- type ServiceuserService_Get_Call
- func (_c *ServiceuserService_Get_Call) Return(_a0 serviceuser.ServiceUser, _a1 error) *ServiceuserService_Get_Call
- func (_c *ServiceuserService_Get_Call) Run(run func(ctx context.Context, id string)) *ServiceuserService_Get_Call
- func (_c *ServiceuserService_Get_Call) RunAndReturn(run func(context.Context, string) (serviceuser.ServiceUser, error)) *ServiceuserService_Get_Call
- type UserService
- type UserService_Expecter
- type UserService_GetByID_Call
- func (_c *UserService_GetByID_Call) Return(_a0 user.User, _a1 error) *UserService_GetByID_Call
- func (_c *UserService_GetByID_Call) Run(run func(ctx context.Context, id string)) *UserService_GetByID_Call
- func (_c *UserService_GetByID_Call) RunAndReturn(run func(context.Context, string) (user.User, error)) *UserService_GetByID_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditRecordRepository ¶
AuditRecordRepository is an autogenerated mock type for the AuditRecordRepository type
func NewAuditRecordRepository ¶
func NewAuditRecordRepository(t interface {
mock.TestingT
Cleanup(func())
}) *AuditRecordRepository
NewAuditRecordRepository creates a new instance of AuditRecordRepository. 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 (*AuditRecordRepository) Create ¶
func (_m *AuditRecordRepository) Create(ctx context.Context, auditRecord models.AuditRecord) (models.AuditRecord, error)
Create provides a mock function with given fields: ctx, auditRecord
func (*AuditRecordRepository) EXPECT ¶
func (_m *AuditRecordRepository) EXPECT() *AuditRecordRepository_Expecter
type AuditRecordRepository_Create_Call ¶
AuditRecordRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*AuditRecordRepository_Create_Call) Return ¶
func (_c *AuditRecordRepository_Create_Call) Return(_a0 models.AuditRecord, _a1 error) *AuditRecordRepository_Create_Call
func (*AuditRecordRepository_Create_Call) Run ¶
func (_c *AuditRecordRepository_Create_Call) Run(run func(ctx context.Context, auditRecord models.AuditRecord)) *AuditRecordRepository_Create_Call
func (*AuditRecordRepository_Create_Call) RunAndReturn ¶
func (_c *AuditRecordRepository_Create_Call) RunAndReturn(run func(context.Context, models.AuditRecord) (models.AuditRecord, error)) *AuditRecordRepository_Create_Call
type AuditRecordRepository_Expecter ¶
type AuditRecordRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*AuditRecordRepository_Expecter) Create ¶
func (_e *AuditRecordRepository_Expecter) Create(ctx interface{}, auditRecord interface{}) *AuditRecordRepository_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- auditRecord models.AuditRecord
type GroupService ¶
GroupService is an autogenerated mock type for the GroupService type
func NewGroupService ¶
func NewGroupService(t interface {
mock.TestingT
Cleanup(func())
}) *GroupService
NewGroupService creates a new instance of GroupService. 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 (*GroupService) EXPECT ¶
func (_m *GroupService) EXPECT() *GroupService_Expecter
type GroupService_Expecter ¶
type GroupService_Expecter struct {
// contains filtered or unexported fields
}
func (*GroupService_Expecter) Get ¶
func (_e *GroupService_Expecter) Get(ctx interface{}, idOrName interface{}) *GroupService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- idOrName string
func (*GroupService_Expecter) List ¶
func (_e *GroupService_Expecter) List(ctx interface{}, flt interface{}) *GroupService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- flt group.Filter
type GroupService_Get_Call ¶
GroupService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*GroupService_Get_Call) Return ¶
func (_c *GroupService_Get_Call) Return(_a0 group.Group, _a1 error) *GroupService_Get_Call
func (*GroupService_Get_Call) Run ¶
func (_c *GroupService_Get_Call) Run(run func(ctx context.Context, idOrName string)) *GroupService_Get_Call
func (*GroupService_Get_Call) RunAndReturn ¶
func (_c *GroupService_Get_Call) RunAndReturn(run func(context.Context, string) (group.Group, error)) *GroupService_Get_Call
type GroupService_List_Call ¶
GroupService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*GroupService_List_Call) Return ¶
func (_c *GroupService_List_Call) Return(_a0 []group.Group, _a1 error) *GroupService_List_Call
func (*GroupService_List_Call) Run ¶
func (_c *GroupService_List_Call) Run(run func(ctx context.Context, flt group.Filter)) *GroupService_List_Call
func (*GroupService_List_Call) RunAndReturn ¶
func (_c *GroupService_List_Call) RunAndReturn(run func(context.Context, group.Filter) ([]group.Group, error)) *GroupService_List_Call
type OrgService ¶
OrgService is an autogenerated mock type for the OrgService type
func NewOrgService ¶
func NewOrgService(t interface {
mock.TestingT
Cleanup(func())
}) *OrgService
NewOrgService creates a new instance of OrgService. 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 (*OrgService) EXPECT ¶
func (_m *OrgService) EXPECT() *OrgService_Expecter
func (*OrgService) Get ¶
func (_m *OrgService) Get(ctx context.Context, idOrName string) (organization.Organization, error)
Get provides a mock function with given fields: ctx, idOrName
type OrgService_Expecter ¶
type OrgService_Expecter struct {
// contains filtered or unexported fields
}
func (*OrgService_Expecter) Get ¶
func (_e *OrgService_Expecter) Get(ctx interface{}, idOrName interface{}) *OrgService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- idOrName string
type OrgService_Get_Call ¶
OrgService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*OrgService_Get_Call) Return ¶
func (_c *OrgService_Get_Call) Return(_a0 organization.Organization, _a1 error) *OrgService_Get_Call
func (*OrgService_Get_Call) Run ¶
func (_c *OrgService_Get_Call) Run(run func(ctx context.Context, idOrName string)) *OrgService_Get_Call
func (*OrgService_Get_Call) RunAndReturn ¶
func (_c *OrgService_Get_Call) RunAndReturn(run func(context.Context, string) (organization.Organization, error)) *OrgService_Get_Call
type PolicyService ¶
PolicyService is an autogenerated mock type for the PolicyService type
func NewPolicyService ¶
func NewPolicyService(t interface {
mock.TestingT
Cleanup(func())
}) *PolicyService
NewPolicyService creates a new instance of PolicyService. 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 (*PolicyService) Delete ¶
func (_m *PolicyService) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*PolicyService) EXPECT ¶
func (_m *PolicyService) EXPECT() *PolicyService_Expecter
type PolicyService_Create_Call ¶
PolicyService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*PolicyService_Create_Call) Return ¶
func (_c *PolicyService_Create_Call) Return(_a0 policy.Policy, _a1 error) *PolicyService_Create_Call
func (*PolicyService_Create_Call) Run ¶
func (_c *PolicyService_Create_Call) Run(run func(ctx context.Context, pol policy.Policy)) *PolicyService_Create_Call
func (*PolicyService_Create_Call) RunAndReturn ¶
func (_c *PolicyService_Create_Call) RunAndReturn(run func(context.Context, policy.Policy) (policy.Policy, error)) *PolicyService_Create_Call
type PolicyService_Delete_Call ¶
PolicyService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*PolicyService_Delete_Call) Return ¶
func (_c *PolicyService_Delete_Call) Return(_a0 error) *PolicyService_Delete_Call
func (*PolicyService_Delete_Call) Run ¶
func (_c *PolicyService_Delete_Call) Run(run func(ctx context.Context, id string)) *PolicyService_Delete_Call
func (*PolicyService_Delete_Call) RunAndReturn ¶
func (_c *PolicyService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *PolicyService_Delete_Call
type PolicyService_Expecter ¶
type PolicyService_Expecter struct {
// contains filtered or unexported fields
}
func (*PolicyService_Expecter) Create ¶
func (_e *PolicyService_Expecter) Create(ctx interface{}, pol interface{}) *PolicyService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- pol policy.Policy
func (*PolicyService_Expecter) Delete ¶
func (_e *PolicyService_Expecter) Delete(ctx interface{}, id interface{}) *PolicyService_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id string
func (*PolicyService_Expecter) List ¶
func (_e *PolicyService_Expecter) List(ctx interface{}, flt interface{}) *PolicyService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- flt policy.Filter
type PolicyService_List_Call ¶
PolicyService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*PolicyService_List_Call) Return ¶
func (_c *PolicyService_List_Call) Return(_a0 []policy.Policy, _a1 error) *PolicyService_List_Call
func (*PolicyService_List_Call) Run ¶
func (_c *PolicyService_List_Call) Run(run func(ctx context.Context, flt policy.Filter)) *PolicyService_List_Call
func (*PolicyService_List_Call) RunAndReturn ¶
func (_c *PolicyService_List_Call) RunAndReturn(run func(context.Context, policy.Filter) ([]policy.Policy, error)) *PolicyService_List_Call
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
type ProjectService_Expecter ¶
type ProjectService_Expecter struct {
// contains filtered or unexported fields
}
func (*ProjectService_Expecter) Get ¶
func (_e *ProjectService_Expecter) Get(ctx interface{}, idOrName interface{}) *ProjectService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- idOrName string
func (*ProjectService_Expecter) List ¶
func (_e *ProjectService_Expecter) List(ctx interface{}, flt interface{}) *ProjectService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- flt project.Filter
type ProjectService_Get_Call ¶
ProjectService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*ProjectService_Get_Call) Return ¶
func (_c *ProjectService_Get_Call) Return(_a0 project.Project, _a1 error) *ProjectService_Get_Call
func (*ProjectService_Get_Call) Run ¶
func (_c *ProjectService_Get_Call) Run(run func(ctx context.Context, idOrName string)) *ProjectService_Get_Call
func (*ProjectService_Get_Call) RunAndReturn ¶
func (_c *ProjectService_Get_Call) RunAndReturn(run func(context.Context, string) (project.Project, error)) *ProjectService_Get_Call
type ProjectService_List_Call ¶
ProjectService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*ProjectService_List_Call) Return ¶
func (_c *ProjectService_List_Call) Return(_a0 []project.Project, _a1 error) *ProjectService_List_Call
func (*ProjectService_List_Call) Run ¶
func (_c *ProjectService_List_Call) Run(run func(ctx context.Context, flt project.Filter)) *ProjectService_List_Call
func (*ProjectService_List_Call) RunAndReturn ¶
func (_c *ProjectService_List_Call) RunAndReturn(run func(context.Context, project.Filter) ([]project.Project, error)) *ProjectService_List_Call
type RelationService ¶
RelationService is an autogenerated mock type for the RelationService type
func NewRelationService ¶
func NewRelationService(t interface {
mock.TestingT
Cleanup(func())
}) *RelationService
NewRelationService creates a new instance of RelationService. 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 (*RelationService) Create ¶
func (_m *RelationService) Create(ctx context.Context, rel relation.Relation) (relation.Relation, error)
Create provides a mock function with given fields: ctx, rel
func (*RelationService) EXPECT ¶
func (_m *RelationService) EXPECT() *RelationService_Expecter
type RelationService_Create_Call ¶
RelationService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*RelationService_Create_Call) Return ¶
func (_c *RelationService_Create_Call) Return(_a0 relation.Relation, _a1 error) *RelationService_Create_Call
func (*RelationService_Create_Call) Run ¶
func (_c *RelationService_Create_Call) Run(run func(ctx context.Context, rel relation.Relation)) *RelationService_Create_Call
func (*RelationService_Create_Call) RunAndReturn ¶
func (_c *RelationService_Create_Call) RunAndReturn(run func(context.Context, relation.Relation) (relation.Relation, error)) *RelationService_Create_Call
type RelationService_Delete_Call ¶
RelationService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*RelationService_Delete_Call) Return ¶
func (_c *RelationService_Delete_Call) Return(_a0 error) *RelationService_Delete_Call
func (*RelationService_Delete_Call) Run ¶
func (_c *RelationService_Delete_Call) Run(run func(ctx context.Context, rel relation.Relation)) *RelationService_Delete_Call
func (*RelationService_Delete_Call) RunAndReturn ¶
func (_c *RelationService_Delete_Call) RunAndReturn(run func(context.Context, relation.Relation) error) *RelationService_Delete_Call
type RelationService_Expecter ¶
type RelationService_Expecter struct {
// contains filtered or unexported fields
}
func (*RelationService_Expecter) Create ¶
func (_e *RelationService_Expecter) Create(ctx interface{}, rel interface{}) *RelationService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- rel relation.Relation
func (*RelationService_Expecter) Delete ¶
func (_e *RelationService_Expecter) Delete(ctx interface{}, rel interface{}) *RelationService_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- rel relation.Relation
type RoleService ¶
RoleService is an autogenerated mock type for the RoleService type
func NewRoleService ¶
func NewRoleService(t interface {
mock.TestingT
Cleanup(func())
}) *RoleService
NewRoleService creates a new instance of RoleService. 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 (*RoleService) EXPECT ¶
func (_m *RoleService) EXPECT() *RoleService_Expecter
type RoleService_Expecter ¶
type RoleService_Expecter struct {
// contains filtered or unexported fields
}
func (*RoleService_Expecter) Get ¶
func (_e *RoleService_Expecter) Get(ctx interface{}, idOrName interface{}) *RoleService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- idOrName string
type RoleService_Get_Call ¶
RoleService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*RoleService_Get_Call) Return ¶
func (_c *RoleService_Get_Call) Return(_a0 role.Role, _a1 error) *RoleService_Get_Call
func (*RoleService_Get_Call) Run ¶
func (_c *RoleService_Get_Call) Run(run func(ctx context.Context, idOrName string)) *RoleService_Get_Call
func (*RoleService_Get_Call) RunAndReturn ¶
func (_c *RoleService_Get_Call) RunAndReturn(run func(context.Context, string) (role.Role, error)) *RoleService_Get_Call
type ServiceuserService ¶
ServiceuserService is an autogenerated mock type for the ServiceuserService type
func NewServiceuserService ¶
func NewServiceuserService(t interface {
mock.TestingT
Cleanup(func())
}) *ServiceuserService
NewServiceuserService creates a new instance of ServiceuserService. 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 (*ServiceuserService) EXPECT ¶
func (_m *ServiceuserService) EXPECT() *ServiceuserService_Expecter
func (*ServiceuserService) Get ¶
func (_m *ServiceuserService) Get(ctx context.Context, id string) (serviceuser.ServiceUser, error)
Get provides a mock function with given fields: ctx, id
type ServiceuserService_Expecter ¶
type ServiceuserService_Expecter struct {
// contains filtered or unexported fields
}
func (*ServiceuserService_Expecter) Get ¶
func (_e *ServiceuserService_Expecter) Get(ctx interface{}, id interface{}) *ServiceuserService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id string
type ServiceuserService_Get_Call ¶
ServiceuserService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*ServiceuserService_Get_Call) Return ¶
func (_c *ServiceuserService_Get_Call) Return(_a0 serviceuser.ServiceUser, _a1 error) *ServiceuserService_Get_Call
func (*ServiceuserService_Get_Call) Run ¶
func (_c *ServiceuserService_Get_Call) Run(run func(ctx context.Context, id string)) *ServiceuserService_Get_Call
func (*ServiceuserService_Get_Call) RunAndReturn ¶
func (_c *ServiceuserService_Get_Call) RunAndReturn(run func(context.Context, string) (serviceuser.ServiceUser, error)) *ServiceuserService_Get_Call
type UserService ¶
UserService is an autogenerated mock type for the UserService type
func NewUserService ¶
func NewUserService(t interface {
mock.TestingT
Cleanup(func())
}) *UserService
NewUserService creates a new instance of UserService. 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 (*UserService) EXPECT ¶
func (_m *UserService) EXPECT() *UserService_Expecter
type UserService_Expecter ¶
type UserService_Expecter struct {
// contains filtered or unexported fields
}
func (*UserService_Expecter) GetByID ¶
func (_e *UserService_Expecter) GetByID(ctx interface{}, id interface{}) *UserService_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id string
type UserService_GetByID_Call ¶
UserService_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*UserService_GetByID_Call) Return ¶
func (_c *UserService_GetByID_Call) Return(_a0 user.User, _a1 error) *UserService_GetByID_Call
func (*UserService_GetByID_Call) Run ¶
func (_c *UserService_GetByID_Call) Run(run func(ctx context.Context, id string)) *UserService_GetByID_Call
func (*UserService_GetByID_Call) RunAndReturn ¶
func (_c *UserService_GetByID_Call) RunAndReturn(run func(context.Context, string) (user.User, error)) *UserService_GetByID_Call