mocks

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 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 ProviderRepository

type ProviderRepository struct {
	mock.Mock
}

ProviderRepository is an autogenerated mock type for the Repository type

func NewProviderRepository

func NewProviderRepository(t mockConstructorTestingTNewProviderRepository) *ProviderRepository

NewProviderRepository creates a new instance of ProviderRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ProviderRepository) Create

func (_m *ProviderRepository) Create(_a0 context.Context, _a1 *provider.Provider) error

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

func (*ProviderRepository) Delete

func (_m *ProviderRepository) Delete(_a0 context.Context, _a1 uint64) error

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

func (*ProviderRepository) EXPECT

func (*ProviderRepository) Get

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

func (*ProviderRepository) List

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

func (*ProviderRepository) Update

func (_m *ProviderRepository) Update(_a0 context.Context, _a1 *provider.Provider) error

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

type ProviderRepository_Create_Call

type ProviderRepository_Create_Call struct {
	*mock.Call
}

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

func (*ProviderRepository_Create_Call) Return

func (*ProviderRepository_Create_Call) Run

func (*ProviderRepository_Create_Call) RunAndReturn added in v0.6.1

type ProviderRepository_Delete_Call

type ProviderRepository_Delete_Call struct {
	*mock.Call
}

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

func (*ProviderRepository_Delete_Call) Return

func (*ProviderRepository_Delete_Call) Run

func (*ProviderRepository_Delete_Call) RunAndReturn added in v0.6.1

type ProviderRepository_Expecter

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

func (*ProviderRepository_Expecter) Create

func (_e *ProviderRepository_Expecter) Create(_a0 interface{}, _a1 interface{}) *ProviderRepository_Create_Call

Create is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *provider.Provider

func (*ProviderRepository_Expecter) Delete

func (_e *ProviderRepository_Expecter) Delete(_a0 interface{}, _a1 interface{}) *ProviderRepository_Delete_Call

Delete is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 uint64

func (*ProviderRepository_Expecter) Get

func (_e *ProviderRepository_Expecter) Get(_a0 interface{}, _a1 interface{}) *ProviderRepository_Get_Call

Get is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 uint64

func (*ProviderRepository_Expecter) List

func (_e *ProviderRepository_Expecter) List(_a0 interface{}, _a1 interface{}) *ProviderRepository_List_Call

List is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 provider.Filter

func (*ProviderRepository_Expecter) Update

func (_e *ProviderRepository_Expecter) Update(_a0 interface{}, _a1 interface{}) *ProviderRepository_Update_Call

Update is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *provider.Provider

type ProviderRepository_Get_Call

type ProviderRepository_Get_Call struct {
	*mock.Call
}

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

func (*ProviderRepository_Get_Call) Return

func (*ProviderRepository_Get_Call) Run

func (*ProviderRepository_Get_Call) RunAndReturn added in v0.6.1

type ProviderRepository_List_Call

type ProviderRepository_List_Call struct {
	*mock.Call
}

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

func (*ProviderRepository_List_Call) Return

func (*ProviderRepository_List_Call) Run

func (*ProviderRepository_List_Call) RunAndReturn added in v0.6.1

type ProviderRepository_Update_Call

type ProviderRepository_Update_Call struct {
	*mock.Call
}

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

func (*ProviderRepository_Update_Call) Return

func (*ProviderRepository_Update_Call) Run

func (*ProviderRepository_Update_Call) RunAndReturn added in v0.6.1

Jump to

Keyboard shortcuts

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