mocks

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApprovalService

type ApprovalService struct {
	mock.Mock
}

ApprovalService is an autogenerated mock type for the approvalService type

func NewApprovalService

func NewApprovalService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ApprovalService

NewApprovalService creates a new instance of ApprovalService. 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 (*ApprovalService) AddApprover

func (_m *ApprovalService) AddApprover(ctx context.Context, approvalID string, email string) error

AddApprover provides a mock function with given fields: ctx, approvalID, email

func (*ApprovalService) DeleteApprover

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

DeleteApprover provides a mock function with given fields: ctx, approvalID, email

func (*ApprovalService) EXPECT

type ApprovalService_AddApprover_Call

type ApprovalService_AddApprover_Call struct {
	*mock.Call
}

ApprovalService_AddApprover_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddApprover'

func (*ApprovalService_AddApprover_Call) Return

func (*ApprovalService_AddApprover_Call) Run

func (*ApprovalService_AddApprover_Call) RunAndReturn added in v0.7.5

type ApprovalService_DeleteApprover_Call

type ApprovalService_DeleteApprover_Call struct {
	*mock.Call
}

ApprovalService_DeleteApprover_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteApprover'

func (*ApprovalService_DeleteApprover_Call) Return

func (*ApprovalService_DeleteApprover_Call) Run

func (*ApprovalService_DeleteApprover_Call) RunAndReturn added in v0.7.5

type ApprovalService_Expecter

type ApprovalService_Expecter struct {
	// contains filtered or unexported fields
}

func (*ApprovalService_Expecter) AddApprover

func (_e *ApprovalService_Expecter) AddApprover(ctx interface{}, approvalID interface{}, email interface{}) *ApprovalService_AddApprover_Call

AddApprover is a helper method to define mock.On call

  • ctx context.Context
  • approvalID string
  • email string

func (*ApprovalService_Expecter) DeleteApprover

func (_e *ApprovalService_Expecter) DeleteApprover(ctx interface{}, approvalID interface{}, email interface{}) *ApprovalService_DeleteApprover_Call

DeleteApprover is a helper method to define mock.On call

  • ctx context.Context
  • approvalID string
  • email string

type AuditLogger

type AuditLogger struct {
	mock.Mock
}

AuditLogger is an autogenerated mock type for the auditLogger type

func NewAuditLogger added in v0.7.5

func NewAuditLogger(t interface {
	mock.TestingT
	Cleanup(func())
}) *AuditLogger

NewAuditLogger creates a new instance of AuditLogger. 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 (*AuditLogger) EXPECT

func (_m *AuditLogger) EXPECT() *AuditLogger_Expecter

func (*AuditLogger) Log

func (_m *AuditLogger) Log(ctx context.Context, action string, data interface{}) error

Log provides a mock function with given fields: ctx, action, data

type AuditLogger_Expecter

type AuditLogger_Expecter struct {
	// contains filtered or unexported fields
}

func (*AuditLogger_Expecter) Log

func (_e *AuditLogger_Expecter) Log(ctx interface{}, action interface{}, data interface{}) *AuditLogger_Log_Call

Log is a helper method to define mock.On call

  • ctx context.Context
  • action string
  • data interface{}

type AuditLogger_Log_Call

type AuditLogger_Log_Call struct {
	*mock.Call
}

AuditLogger_Log_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Log'

func (*AuditLogger_Log_Call) Return

func (*AuditLogger_Log_Call) Run

func (_c *AuditLogger_Log_Call) Run(run func(ctx context.Context, action string, data interface{})) *AuditLogger_Log_Call

func (*AuditLogger_Log_Call) RunAndReturn added in v0.7.5

func (_c *AuditLogger_Log_Call) RunAndReturn(run func(context.Context, string, interface{}) error) *AuditLogger_Log_Call

type GrantService

type GrantService struct {
	mock.Mock
}

GrantService is an autogenerated mock type for the grantService type

func NewGrantService added in v0.7.5

func NewGrantService(t interface {
	mock.TestingT
	Cleanup(func())
}) *GrantService

NewGrantService creates a new instance of GrantService. 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 (*GrantService) EXPECT

func (_m *GrantService) EXPECT() *GrantService_Expecter

func (*GrantService) List

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

func (*GrantService) Prepare

func (_m *GrantService) Prepare(_a0 context.Context, _a1 domain.Appeal) (*domain.Grant, error)

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

func (*GrantService) Revoke

func (_m *GrantService) Revoke(ctx context.Context, id string, actor string, reason string, opts ...grant.Option) (*domain.Grant, error)

Revoke provides a mock function with given fields: ctx, id, actor, reason, opts

type GrantService_Expecter

type GrantService_Expecter struct {
	// contains filtered or unexported fields
}

func (*GrantService_Expecter) List

func (_e *GrantService_Expecter) List(_a0 interface{}, _a1 interface{}) *GrantService_List_Call

List is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 domain.ListGrantsFilter

func (*GrantService_Expecter) Prepare

func (_e *GrantService_Expecter) Prepare(_a0 interface{}, _a1 interface{}) *GrantService_Prepare_Call

Prepare is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 domain.Appeal

func (*GrantService_Expecter) Revoke

func (_e *GrantService_Expecter) Revoke(ctx interface{}, id interface{}, actor interface{}, reason interface{}, opts ...interface{}) *GrantService_Revoke_Call

Revoke is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • actor string
  • reason string
  • opts ...grant.Option

type GrantService_List_Call

type GrantService_List_Call struct {
	*mock.Call
}

GrantService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*GrantService_List_Call) Return

func (*GrantService_List_Call) Run

func (*GrantService_List_Call) RunAndReturn added in v0.7.5

type GrantService_Prepare_Call

type GrantService_Prepare_Call struct {
	*mock.Call
}

GrantService_Prepare_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Prepare'

func (*GrantService_Prepare_Call) Return

func (*GrantService_Prepare_Call) Run

func (*GrantService_Prepare_Call) RunAndReturn added in v0.7.5

type GrantService_Revoke_Call

type GrantService_Revoke_Call struct {
	*mock.Call
}

GrantService_Revoke_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Revoke'

func (*GrantService_Revoke_Call) Return

func (*GrantService_Revoke_Call) Run

func (_c *GrantService_Revoke_Call) Run(run func(ctx context.Context, id string, actor string, reason string, opts ...grant.Option)) *GrantService_Revoke_Call

func (*GrantService_Revoke_Call) RunAndReturn added in v0.7.5

type IamManager

type IamManager struct {
	mock.Mock
}

IamManager is an autogenerated mock type for the iamManager type

func NewIamManager added in v0.7.5

func NewIamManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *IamManager

NewIamManager creates a new instance of IamManager. 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 (*IamManager) EXPECT

func (_m *IamManager) EXPECT() *IamManager_Expecter

func (*IamManager) GetClient

func (_m *IamManager) GetClient(_a0 domain.SensitiveConfig) (domain.IAMClient, error)

GetClient provides a mock function with given fields: _a0

func (*IamManager) ParseConfig

func (_m *IamManager) ParseConfig(_a0 *domain.IAMConfig) (domain.SensitiveConfig, error)

ParseConfig provides a mock function with given fields: _a0

type IamManager_Expecter

type IamManager_Expecter struct {
	// contains filtered or unexported fields
}

func (*IamManager_Expecter) GetClient

func (_e *IamManager_Expecter) GetClient(_a0 interface{}) *IamManager_GetClient_Call

GetClient is a helper method to define mock.On call

  • _a0 domain.SensitiveConfig

func (*IamManager_Expecter) ParseConfig

func (_e *IamManager_Expecter) ParseConfig(_a0 interface{}) *IamManager_ParseConfig_Call

ParseConfig is a helper method to define mock.On call

  • _a0 *domain.IAMConfig

type IamManager_GetClient_Call

type IamManager_GetClient_Call struct {
	*mock.Call
}

IamManager_GetClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetClient'

func (*IamManager_GetClient_Call) Return

func (*IamManager_GetClient_Call) Run

func (*IamManager_GetClient_Call) RunAndReturn added in v0.7.5

type IamManager_ParseConfig_Call

type IamManager_ParseConfig_Call struct {
	*mock.Call
}

IamManager_ParseConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ParseConfig'

func (*IamManager_ParseConfig_Call) Return

func (*IamManager_ParseConfig_Call) Run

func (*IamManager_ParseConfig_Call) RunAndReturn added in v0.7.5

type Notifier

type Notifier struct {
	mock.Mock
}

Notifier is an autogenerated mock type for the notifier type

func NewNotifier added in v0.7.5

func NewNotifier(t interface {
	mock.TestingT
	Cleanup(func())
}) *Notifier

NewNotifier creates a new instance of Notifier. 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 (*Notifier) EXPECT

func (_m *Notifier) EXPECT() *Notifier_Expecter

func (*Notifier) Notify

func (_m *Notifier) Notify(_a0 context.Context, _a1 []domain.Notification) []error

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

type Notifier_Expecter

type Notifier_Expecter struct {
	// contains filtered or unexported fields
}

func (*Notifier_Expecter) Notify

func (_e *Notifier_Expecter) Notify(_a0 interface{}, _a1 interface{}) *Notifier_Notify_Call

Notify is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 []domain.Notification

type Notifier_Notify_Call

type Notifier_Notify_Call struct {
	*mock.Call
}

Notifier_Notify_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Notify'

func (*Notifier_Notify_Call) Return

func (_c *Notifier_Notify_Call) Return(_a0 []error) *Notifier_Notify_Call

func (*Notifier_Notify_Call) Run

func (*Notifier_Notify_Call) RunAndReturn added in v0.7.5

type PolicyService

type PolicyService struct {
	mock.Mock
}

PolicyService is an autogenerated mock type for the policyService type

func NewPolicyService added in v0.7.5

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

func (*PolicyService) Find

func (_m *PolicyService) Find(_a0 context.Context) ([]*domain.Policy, error)

Find provides a mock function with given fields: _a0

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) Find

func (_e *PolicyService_Expecter) Find(_a0 interface{}) *PolicyService_Find_Call

Find is a helper method to define mock.On call

  • _a0 context.Context

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_Find_Call

type PolicyService_Find_Call struct {
	*mock.Call
}

PolicyService_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'

func (*PolicyService_Find_Call) Return

func (*PolicyService_Find_Call) Run

func (*PolicyService_Find_Call) RunAndReturn added in v0.7.5

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

func (*PolicyService_GetOne_Call) RunAndReturn added in v0.7.5

type ProviderService

type ProviderService struct {
	mock.Mock
}

ProviderService is an autogenerated mock type for the providerService type

func NewProviderService added in v0.7.5

func NewProviderService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ProviderService

NewProviderService creates a new instance of ProviderService. 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 (*ProviderService) EXPECT

func (*ProviderService) Find

func (_m *ProviderService) Find(_a0 context.Context) ([]*domain.Provider, error)

Find provides a mock function with given fields: _a0

func (*ProviderService) GetPermissions

func (_m *ProviderService) GetPermissions(_a0 context.Context, _a1 *domain.ProviderConfig, _a2 string, _a3 string) ([]interface{}, error)

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

func (*ProviderService) GrantAccess

func (_m *ProviderService) GrantAccess(_a0 context.Context, _a1 domain.Grant) error

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

func (*ProviderService) IsExclusiveRoleAssignment added in v0.9.0

func (_m *ProviderService) IsExclusiveRoleAssignment(_a0 context.Context, _a1 string, _a2 string) bool

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

func (*ProviderService) RevokeAccess

func (_m *ProviderService) RevokeAccess(_a0 context.Context, _a1 domain.Grant) error

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

func (*ProviderService) ValidateAppeal

func (_m *ProviderService) ValidateAppeal(_a0 context.Context, _a1 *domain.Appeal, _a2 *domain.Provider, _a3 *domain.Policy) error

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

type ProviderService_Expecter

type ProviderService_Expecter struct {
	// contains filtered or unexported fields
}

func (*ProviderService_Expecter) Find

func (_e *ProviderService_Expecter) Find(_a0 interface{}) *ProviderService_Find_Call

Find is a helper method to define mock.On call

  • _a0 context.Context

func (*ProviderService_Expecter) GetPermissions

func (_e *ProviderService_Expecter) GetPermissions(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 interface{}) *ProviderService_GetPermissions_Call

GetPermissions is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *domain.ProviderConfig
  • _a2 string
  • _a3 string

func (*ProviderService_Expecter) GrantAccess

func (_e *ProviderService_Expecter) GrantAccess(_a0 interface{}, _a1 interface{}) *ProviderService_GrantAccess_Call

GrantAccess is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 domain.Grant

func (*ProviderService_Expecter) IsExclusiveRoleAssignment added in v0.9.0

func (_e *ProviderService_Expecter) IsExclusiveRoleAssignment(_a0 interface{}, _a1 interface{}, _a2 interface{}) *ProviderService_IsExclusiveRoleAssignment_Call

IsExclusiveRoleAssignment is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string
  • _a2 string

func (*ProviderService_Expecter) RevokeAccess

func (_e *ProviderService_Expecter) RevokeAccess(_a0 interface{}, _a1 interface{}) *ProviderService_RevokeAccess_Call

RevokeAccess is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 domain.Grant

func (*ProviderService_Expecter) ValidateAppeal

func (_e *ProviderService_Expecter) ValidateAppeal(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 interface{}) *ProviderService_ValidateAppeal_Call

ValidateAppeal is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *domain.Appeal
  • _a2 *domain.Provider
  • _a3 *domain.Policy

type ProviderService_Find_Call

type ProviderService_Find_Call struct {
	*mock.Call
}

ProviderService_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'

func (*ProviderService_Find_Call) Return

func (*ProviderService_Find_Call) Run

func (*ProviderService_Find_Call) RunAndReturn added in v0.7.5

type ProviderService_GetPermissions_Call

type ProviderService_GetPermissions_Call struct {
	*mock.Call
}

ProviderService_GetPermissions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPermissions'

func (*ProviderService_GetPermissions_Call) Return

func (*ProviderService_GetPermissions_Call) Run

func (*ProviderService_GetPermissions_Call) RunAndReturn added in v0.7.5

type ProviderService_GrantAccess_Call

type ProviderService_GrantAccess_Call struct {
	*mock.Call
}

ProviderService_GrantAccess_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GrantAccess'

func (*ProviderService_GrantAccess_Call) Return

func (*ProviderService_GrantAccess_Call) Run

func (*ProviderService_GrantAccess_Call) RunAndReturn added in v0.7.5

type ProviderService_IsExclusiveRoleAssignment_Call added in v0.9.0

type ProviderService_IsExclusiveRoleAssignment_Call struct {
	*mock.Call
}

ProviderService_IsExclusiveRoleAssignment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsExclusiveRoleAssignment'

func (*ProviderService_IsExclusiveRoleAssignment_Call) Return added in v0.9.0

func (*ProviderService_IsExclusiveRoleAssignment_Call) Run added in v0.9.0

func (*ProviderService_IsExclusiveRoleAssignment_Call) RunAndReturn added in v0.9.0

type ProviderService_RevokeAccess_Call

type ProviderService_RevokeAccess_Call struct {
	*mock.Call
}

ProviderService_RevokeAccess_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RevokeAccess'

func (*ProviderService_RevokeAccess_Call) Return

func (*ProviderService_RevokeAccess_Call) Run

func (*ProviderService_RevokeAccess_Call) RunAndReturn added in v0.7.5

type ProviderService_ValidateAppeal_Call

type ProviderService_ValidateAppeal_Call struct {
	*mock.Call
}

ProviderService_ValidateAppeal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateAppeal'

func (*ProviderService_ValidateAppeal_Call) Return

func (*ProviderService_ValidateAppeal_Call) Run

func (*ProviderService_ValidateAppeal_Call) RunAndReturn added in v0.7.5

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the repository type

func NewRepository added in v0.7.5

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) BulkUpsert

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

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

func (*Repository) EXPECT

func (_m *Repository) EXPECT() *Repository_Expecter

func (*Repository) Find

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

func (*Repository) GetAppealsTotalCount added in v0.7.5

func (_m *Repository) GetAppealsTotalCount(_a0 context.Context, _a1 *domain.ListAppealsFilter) (int64, error)

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

func (*Repository) GetByID

func (_m *Repository) GetByID(ctx context.Context, id string) (*domain.Appeal, error)

GetByID provides a mock function with given fields: ctx, id

func (*Repository) Update

func (_m *Repository) Update(_a0 context.Context, _a1 *domain.Appeal) error

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

type Repository_BulkUpsert_Call

type Repository_BulkUpsert_Call struct {
	*mock.Call
}

Repository_BulkUpsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BulkUpsert'

func (*Repository_BulkUpsert_Call) Return

func (*Repository_BulkUpsert_Call) Run

func (*Repository_BulkUpsert_Call) RunAndReturn added in v0.7.5

type Repository_Expecter

type Repository_Expecter struct {
	// contains filtered or unexported fields
}

func (*Repository_Expecter) BulkUpsert

func (_e *Repository_Expecter) BulkUpsert(_a0 interface{}, _a1 interface{}) *Repository_BulkUpsert_Call

BulkUpsert is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 []*domain.Appeal

func (*Repository_Expecter) Find

func (_e *Repository_Expecter) Find(_a0 interface{}, _a1 interface{}) *Repository_Find_Call

Find is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *domain.ListAppealsFilter

func (*Repository_Expecter) GetAppealsTotalCount added in v0.7.5

func (_e *Repository_Expecter) GetAppealsTotalCount(_a0 interface{}, _a1 interface{}) *Repository_GetAppealsTotalCount_Call

GetAppealsTotalCount is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *domain.ListAppealsFilter

func (*Repository_Expecter) GetByID

func (_e *Repository_Expecter) GetByID(ctx interface{}, id interface{}) *Repository_GetByID_Call

GetByID is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*Repository_Expecter) Update

func (_e *Repository_Expecter) Update(_a0 interface{}, _a1 interface{}) *Repository_Update_Call

Update is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *domain.Appeal

type Repository_Find_Call

type Repository_Find_Call struct {
	*mock.Call
}

Repository_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'

func (*Repository_Find_Call) Return

func (_c *Repository_Find_Call) Return(_a0 []*domain.Appeal, _a1 error) *Repository_Find_Call

func (*Repository_Find_Call) Run

func (*Repository_Find_Call) RunAndReturn added in v0.7.5

type Repository_GetAppealsTotalCount_Call added in v0.7.5

type Repository_GetAppealsTotalCount_Call struct {
	*mock.Call
}

Repository_GetAppealsTotalCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAppealsTotalCount'

func (*Repository_GetAppealsTotalCount_Call) Return added in v0.7.5

func (*Repository_GetAppealsTotalCount_Call) Run added in v0.7.5

func (*Repository_GetAppealsTotalCount_Call) RunAndReturn added in v0.7.5

type Repository_GetByID_Call

type Repository_GetByID_Call struct {
	*mock.Call
}

Repository_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'

func (*Repository_GetByID_Call) Return

func (*Repository_GetByID_Call) Run

func (*Repository_GetByID_Call) RunAndReturn added in v0.7.5

type Repository_Update_Call

type Repository_Update_Call struct {
	*mock.Call
}

Repository_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'

func (*Repository_Update_Call) Return

func (*Repository_Update_Call) Run

func (*Repository_Update_Call) RunAndReturn added in v0.7.5

type ResourceService

type ResourceService struct {
	mock.Mock
}

ResourceService is an autogenerated mock type for the resourceService type

func NewResourceService added in v0.7.5

func NewResourceService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ResourceService

NewResourceService creates a new instance of ResourceService. 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 (*ResourceService) EXPECT

func (*ResourceService) Find

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

func (*ResourceService) Get

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

type ResourceService_Expecter

type ResourceService_Expecter struct {
	// contains filtered or unexported fields
}

func (*ResourceService_Expecter) Find

func (_e *ResourceService_Expecter) Find(_a0 interface{}, _a1 interface{}) *ResourceService_Find_Call

Find is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 domain.ListResourcesFilter

func (*ResourceService_Expecter) Get

func (_e *ResourceService_Expecter) Get(_a0 interface{}, _a1 interface{}) *ResourceService_Get_Call

Get is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *domain.ResourceIdentifier

type ResourceService_Find_Call

type ResourceService_Find_Call struct {
	*mock.Call
}

ResourceService_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'

func (*ResourceService_Find_Call) Return

func (*ResourceService_Find_Call) Run

func (*ResourceService_Find_Call) RunAndReturn added in v0.7.5

type ResourceService_Get_Call

type ResourceService_Get_Call struct {
	*mock.Call
}

ResourceService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*ResourceService_Get_Call) Return

func (*ResourceService_Get_Call) Run

func (*ResourceService_Get_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