mocks

package
v0.7.6-beta.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PolicyService

type PolicyService struct {
	mock.Mock
}

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

func (*PolicyService) GetOne

func (_m *PolicyService) GetOne(_a0 context.Context, _a1 string, _a2 uint) (*domain.Policy, error)

GetOne provides a mock function with given fields: _a0, _a1, _a2

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

type PolicyService_GetOne_Call struct {
	*mock.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 (*PolicyService_GetOne_Call) Run

type Repository

type Repository struct {
	mock.Mock
}

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

func (_m *Repository) AddApprover(_a0 context.Context, _a1 *domain.Approver) error

AddApprover provides a mock function with given fields: _a0, _a1

func (*Repository) BulkInsert

func (_m *Repository) BulkInsert(_a0 context.Context, _a1 []*domain.Approval) error

BulkInsert provides a mock function with given fields: _a0, _a1

func (*Repository) DeleteApprover

func (_m *Repository) DeleteApprover(ctx context.Context, approvalID string, email string) error

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

type Repository_AddApprover_Call struct {
	*mock.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 (*Repository_AddApprover_Call) Run

func (*Repository_AddApprover_Call) RunAndReturn added in v0.7.5

type Repository_BulkInsert_Call

type Repository_BulkInsert_Call struct {
	*mock.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 (*Repository_BulkInsert_Call) Run

func (*Repository_BulkInsert_Call) RunAndReturn added in v0.7.5

type Repository_DeleteApprover_Call

type Repository_DeleteApprover_Call struct {
	*mock.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 (*Repository_DeleteApprover_Call) Run

func (*Repository_DeleteApprover_Call) RunAndReturn added in v0.7.5

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

type Repository_GetApprovalsTotalCount_Call struct {
	*mock.Call
}

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 (*Repository_GetApprovalsTotalCount_Call) Run added in v0.7.5

func (*Repository_GetApprovalsTotalCount_Call) RunAndReturn added in v0.7.5

type Repository_ListApprovals_Call

type Repository_ListApprovals_Call struct {
	*mock.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 (*Repository_ListApprovals_Call) Run

func (*Repository_ListApprovals_Call) RunAndReturn added in v0.7.5

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL