Documentation ¶
Index ¶
- type PolicyService
- type PolicyService_Expecter
- type PolicyService_GetOne_Call
- type Repository
- func (_m *Repository) AddApprover(_a0 context.Context, _a1 *domain.Approver) error
- func (_m *Repository) BulkInsert(_a0 context.Context, _a1 []*domain.Approval) error
- func (_m *Repository) DeleteApprover(ctx context.Context, approvalID string, email string) error
- func (_m *Repository) EXPECT() *Repository_Expecter
- func (_m *Repository) ListApprovals(_a0 context.Context, _a1 *domain.ListApprovalsFilter) ([]*domain.Approval, error)
- type Repository_AddApprover_Call
- type Repository_BulkInsert_Call
- type Repository_DeleteApprover_Call
- type Repository_Expecter
- func (_e *Repository_Expecter) AddApprover(_a0 interface{}, _a1 interface{}) *Repository_AddApprover_Call
- func (_e *Repository_Expecter) BulkInsert(_a0 interface{}, _a1 interface{}) *Repository_BulkInsert_Call
- func (_e *Repository_Expecter) DeleteApprover(ctx interface{}, approvalID interface{}, email interface{}) *Repository_DeleteApprover_Call
- func (_e *Repository_Expecter) ListApprovals(_a0 interface{}, _a1 interface{}) *Repository_ListApprovals_Call
- type Repository_ListApprovals_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PolicyService ¶
PolicyService is an autogenerated mock type for the policyService type
func NewPolicyService ¶
func NewPolicyService(t mockConstructorTestingTNewPolicyService) *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.
func (*PolicyService) EXPECT ¶
func (_m *PolicyService) EXPECT() *PolicyService_Expecter
type PolicyService_Expecter ¶
type PolicyService_Expecter struct {
// contains filtered or unexported fields
}
func (*PolicyService_Expecter) GetOne ¶
func (_e *PolicyService_Expecter) GetOne(_a0 interface{}, _a1 interface{}, _a2 interface{}) *PolicyService_GetOne_Call
GetOne is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
- _a2 uint
type PolicyService_GetOne_Call ¶
PolicyService_GetOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOne'
func (*PolicyService_GetOne_Call) Return ¶
func (_c *PolicyService_GetOne_Call) Return(_a0 *domain.Policy, _a1 error) *PolicyService_GetOne_Call
func (*PolicyService_GetOne_Call) Run ¶
func (_c *PolicyService_GetOne_Call) Run(run func(_a0 context.Context, _a1 string, _a2 uint)) *PolicyService_GetOne_Call
type Repository ¶
Repository is an autogenerated mock type for the repository type
func NewRepository ¶
func NewRepository(t mockConstructorTestingTNewRepository) *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.
func (*Repository) AddApprover ¶
AddApprover provides a mock function with given fields: _a0, _a1
func (*Repository) BulkInsert ¶
BulkInsert provides a mock function with given fields: _a0, _a1
func (*Repository) DeleteApprover ¶
DeleteApprover provides a mock function with given fields: ctx, approvalID, email
func (*Repository) EXPECT ¶
func (_m *Repository) EXPECT() *Repository_Expecter
func (*Repository) ListApprovals ¶
func (_m *Repository) ListApprovals(_a0 context.Context, _a1 *domain.ListApprovalsFilter) ([]*domain.Approval, error)
ListApprovals provides a mock function with given fields: _a0, _a1
type Repository_AddApprover_Call ¶
Repository_AddApprover_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddApprover'
func (*Repository_AddApprover_Call) Return ¶
func (_c *Repository_AddApprover_Call) Return(_a0 error) *Repository_AddApprover_Call
func (*Repository_AddApprover_Call) Run ¶
func (_c *Repository_AddApprover_Call) Run(run func(_a0 context.Context, _a1 *domain.Approver)) *Repository_AddApprover_Call
type Repository_BulkInsert_Call ¶
Repository_BulkInsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BulkInsert'
func (*Repository_BulkInsert_Call) Return ¶
func (_c *Repository_BulkInsert_Call) Return(_a0 error) *Repository_BulkInsert_Call
func (*Repository_BulkInsert_Call) Run ¶
func (_c *Repository_BulkInsert_Call) Run(run func(_a0 context.Context, _a1 []*domain.Approval)) *Repository_BulkInsert_Call
type Repository_DeleteApprover_Call ¶
Repository_DeleteApprover_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteApprover'
func (*Repository_DeleteApprover_Call) Return ¶
func (_c *Repository_DeleteApprover_Call) Return(_a0 error) *Repository_DeleteApprover_Call
func (*Repository_DeleteApprover_Call) Run ¶
func (_c *Repository_DeleteApprover_Call) Run(run func(ctx context.Context, approvalID string, email string)) *Repository_DeleteApprover_Call
type Repository_Expecter ¶
type Repository_Expecter struct {
// contains filtered or unexported fields
}
func (*Repository_Expecter) AddApprover ¶
func (_e *Repository_Expecter) AddApprover(_a0 interface{}, _a1 interface{}) *Repository_AddApprover_Call
AddApprover is a helper method to define mock.On call
- _a0 context.Context
- _a1 *domain.Approver
func (*Repository_Expecter) BulkInsert ¶
func (_e *Repository_Expecter) BulkInsert(_a0 interface{}, _a1 interface{}) *Repository_BulkInsert_Call
BulkInsert is a helper method to define mock.On call
- _a0 context.Context
- _a1 []*domain.Approval
func (*Repository_Expecter) DeleteApprover ¶
func (_e *Repository_Expecter) DeleteApprover(ctx interface{}, approvalID interface{}, email interface{}) *Repository_DeleteApprover_Call
DeleteApprover is a helper method to define mock.On call
- ctx context.Context
- approvalID string
- email string
func (*Repository_Expecter) ListApprovals ¶
func (_e *Repository_Expecter) ListApprovals(_a0 interface{}, _a1 interface{}) *Repository_ListApprovals_Call
ListApprovals is a helper method to define mock.On call
- _a0 context.Context
- _a1 *domain.ListApprovalsFilter
type Repository_ListApprovals_Call ¶
Repository_ListApprovals_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListApprovals'
func (*Repository_ListApprovals_Call) Return ¶
func (_c *Repository_ListApprovals_Call) Return(_a0 []*domain.Approval, _a1 error) *Repository_ListApprovals_Call
func (*Repository_ListApprovals_Call) Run ¶
func (_c *Repository_ListApprovals_Call) Run(run func(_a0 context.Context, _a1 *domain.ListApprovalsFilter)) *Repository_ListApprovals_Call