mocks

package
v0.12.2-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 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 AuditLogger

type AuditLogger struct {
	mock.Mock
}

AuditLogger is an autogenerated mock type for the auditLogger type

func NewAuditLogger added in v0.9.0

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.9.0

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

type ProviderService

type ProviderService struct {
	mock.Mock
}

ProviderService is an autogenerated mock type for the providerService type

func NewProviderService added in v0.9.0

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

func (_m *ProviderService) GetOne(ctx context.Context, pType string, urn string) (*domain.Provider, error)

GetOne provides a mock function with given fields: ctx, pType, urn

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

func (_e *ProviderService_Expecter) GetOne(ctx interface{}, pType interface{}, urn interface{}) *ProviderService_GetOne_Call

GetOne is a helper method to define mock.On call

  • ctx context.Context
  • pType string
  • urn string

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_GetOne_Call

type ProviderService_GetOne_Call struct {
	*mock.Call
}

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

func (*ProviderService_GetOne_Call) Return

func (*ProviderService_GetOne_Call) Run

func (*ProviderService_GetOne_Call) RunAndReturn added in v0.9.0

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.9.0

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the repository type

func NewRepository added in v0.9.0

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

func (_m *Repository) Create(_a0 context.Context, _a1 *domain.Policy) error

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

func (*Repository) EXPECT

func (_m *Repository) EXPECT() *Repository_Expecter

func (*Repository) Find

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

Find provides a mock function with given fields: _a0

func (*Repository) GetOne

func (_m *Repository) GetOne(ctx context.Context, id string, version uint) (*domain.Policy, error)

GetOne provides a mock function with given fields: ctx, id, version

type Repository_Create_Call

type Repository_Create_Call struct {
	*mock.Call
}

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

func (*Repository_Create_Call) Return

func (*Repository_Create_Call) Run

func (*Repository_Create_Call) RunAndReturn added in v0.9.0

type Repository_Expecter

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

func (*Repository_Expecter) Create

func (_e *Repository_Expecter) Create(_a0 interface{}, _a1 interface{}) *Repository_Create_Call

Create is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *domain.Policy

func (*Repository_Expecter) Find

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

Find is a helper method to define mock.On call

  • _a0 context.Context

func (*Repository_Expecter) GetOne

func (_e *Repository_Expecter) GetOne(ctx interface{}, id interface{}, version interface{}) *Repository_GetOne_Call

GetOne is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • version uint

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.Policy, _a1 error) *Repository_Find_Call

func (*Repository_Find_Call) Run

func (_c *Repository_Find_Call) Run(run func(_a0 context.Context)) *Repository_Find_Call

func (*Repository_Find_Call) RunAndReturn added in v0.9.0

func (_c *Repository_Find_Call) RunAndReturn(run func(context.Context) ([]*domain.Policy, error)) *Repository_Find_Call

type Repository_GetOne_Call

type Repository_GetOne_Call struct {
	*mock.Call
}

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

func (*Repository_GetOne_Call) Return

func (*Repository_GetOne_Call) Run

func (_c *Repository_GetOne_Call) Run(run func(ctx context.Context, id string, version uint)) *Repository_GetOne_Call

func (*Repository_GetOne_Call) RunAndReturn added in v0.9.0

type ResourceService

type ResourceService struct {
	mock.Mock
}

ResourceService is an autogenerated mock type for the resourceService type

func NewResourceService added in v0.9.0

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) 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) 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_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.9.0

Jump to

Keyboard shortcuts

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