Documentation ¶
Index ¶
- type PolicyService
- type PolicyService_Expecter
- type PolicyService_GetOne_Call
- func (_c *PolicyService_GetOne_Call) Return(_a0 *domain.Policy, _a1 error) *PolicyService_GetOne_Call
- func (_c *PolicyService_GetOne_Call) Run(run func(_a0 context.Context, _a1 string, _a2 uint)) *PolicyService_GetOne_Call
- func (_c *PolicyService_GetOne_Call) RunAndReturn(run func(context.Context, string, uint) (*domain.Policy, error)) *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) GetApprovalsTotalCount(_a0 context.Context, _a1 *domain.ListApprovalsFilter) (int64, error)
- func (_m *Repository) ListApprovals(_a0 context.Context, _a1 *domain.ListApprovalsFilter) ([]*domain.Approval, error)
- type Repository_AddApprover_Call
- func (_c *Repository_AddApprover_Call) Return(_a0 error) *Repository_AddApprover_Call
- func (_c *Repository_AddApprover_Call) Run(run func(_a0 context.Context, _a1 *domain.Approver)) *Repository_AddApprover_Call
- func (_c *Repository_AddApprover_Call) RunAndReturn(run func(context.Context, *domain.Approver) error) *Repository_AddApprover_Call
- type Repository_BulkInsert_Call
- func (_c *Repository_BulkInsert_Call) Return(_a0 error) *Repository_BulkInsert_Call
- func (_c *Repository_BulkInsert_Call) Run(run func(_a0 context.Context, _a1 []*domain.Approval)) *Repository_BulkInsert_Call
- func (_c *Repository_BulkInsert_Call) RunAndReturn(run func(context.Context, []*domain.Approval) error) *Repository_BulkInsert_Call
- type Repository_DeleteApprover_Call
- func (_c *Repository_DeleteApprover_Call) Return(_a0 error) *Repository_DeleteApprover_Call
- func (_c *Repository_DeleteApprover_Call) Run(run func(ctx context.Context, approvalID string, email string)) *Repository_DeleteApprover_Call
- func (_c *Repository_DeleteApprover_Call) RunAndReturn(run func(context.Context, string, string) error) *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) GetApprovalsTotalCount(_a0 interface{}, _a1 interface{}) *Repository_GetApprovalsTotalCount_Call
- func (_e *Repository_Expecter) ListApprovals(_a0 interface{}, _a1 interface{}) *Repository_ListApprovals_Call
- type Repository_GetApprovalsTotalCount_Call
- func (_c *Repository_GetApprovalsTotalCount_Call) Return(_a0 int64, _a1 error) *Repository_GetApprovalsTotalCount_Call
- func (_c *Repository_GetApprovalsTotalCount_Call) Run(run func(_a0 context.Context, _a1 *domain.ListApprovalsFilter)) *Repository_GetApprovalsTotalCount_Call
- func (_c *Repository_GetApprovalsTotalCount_Call) RunAndReturn(run func(context.Context, *domain.ListApprovalsFilter) (int64, error)) *Repository_GetApprovalsTotalCount_Call
- type Repository_ListApprovals_Call
- func (_c *Repository_ListApprovals_Call) Return(_a0 []*domain.Approval, _a1 error) *Repository_ListApprovals_Call
- func (_c *Repository_ListApprovals_Call) Run(run func(_a0 context.Context, _a1 *domain.ListApprovalsFilter)) *Repository_ListApprovals_Call
- func (_c *Repository_ListApprovals_Call) RunAndReturn(...) *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 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) 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
func (*PolicyService_GetOne_Call) RunAndReturn ¶ added in v0.9.0
func (_c *PolicyService_GetOne_Call) RunAndReturn(run func(context.Context, string, uint) (*domain.Policy, error)) *PolicyService_GetOne_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) 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) GetApprovalsTotalCount ¶ added in v0.7.5
func (_m *Repository) GetApprovalsTotalCount(_a0 context.Context, _a1 *domain.ListApprovalsFilter) (int64, error)
GetApprovalsTotalCount provides a mock function with given fields: _a0, _a1
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
func (*Repository_AddApprover_Call) RunAndReturn ¶ added in v0.7.5
func (_c *Repository_AddApprover_Call) RunAndReturn(run func(context.Context, *domain.Approver) error) *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
func (*Repository_BulkInsert_Call) RunAndReturn ¶ added in v0.7.5
func (_c *Repository_BulkInsert_Call) RunAndReturn(run func(context.Context, []*domain.Approval) error) *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
func (*Repository_DeleteApprover_Call) RunAndReturn ¶ added in v0.7.5
func (_c *Repository_DeleteApprover_Call) RunAndReturn(run func(context.Context, string, string) error) *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) GetApprovalsTotalCount ¶ added in v0.7.5
func (_e *Repository_Expecter) GetApprovalsTotalCount(_a0 interface{}, _a1 interface{}) *Repository_GetApprovalsTotalCount_Call
GetApprovalsTotalCount is a helper method to define mock.On call
- _a0 context.Context
- _a1 *domain.ListApprovalsFilter
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_GetApprovalsTotalCount_Call ¶ added in v0.7.5
Repository_GetApprovalsTotalCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetApprovalsTotalCount'
func (*Repository_GetApprovalsTotalCount_Call) Return ¶ added in v0.7.5
func (_c *Repository_GetApprovalsTotalCount_Call) Return(_a0 int64, _a1 error) *Repository_GetApprovalsTotalCount_Call
func (*Repository_GetApprovalsTotalCount_Call) Run ¶ added in v0.7.5
func (_c *Repository_GetApprovalsTotalCount_Call) Run(run func(_a0 context.Context, _a1 *domain.ListApprovalsFilter)) *Repository_GetApprovalsTotalCount_Call
func (*Repository_GetApprovalsTotalCount_Call) RunAndReturn ¶ added in v0.7.5
func (_c *Repository_GetApprovalsTotalCount_Call) RunAndReturn(run func(context.Context, *domain.ListApprovalsFilter) (int64, error)) *Repository_GetApprovalsTotalCount_Call
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
func (*Repository_ListApprovals_Call) RunAndReturn ¶ added in v0.7.5
func (_c *Repository_ListApprovals_Call) RunAndReturn(run func(context.Context, *domain.ListApprovalsFilter) ([]*domain.Approval, error)) *Repository_ListApprovals_Call