mocks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextRepository

type ContextRepository struct {
	mock.Mock
}

ContextRepository is an autogenerated mock type for the ContextRepository type

func NewContextRepository

func NewContextRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *ContextRepository

NewContextRepository creates a new instance of ContextRepository. 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 (*ContextRepository) Create

func (_m *ContextRepository) Create(_a0 context.Context, _a1 *v1beta1.Context) (*models.Context, error)

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

func (*ContextRepository) EXPECT

func (*ContextRepository) Get

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

func (*ContextRepository) Update

func (_m *ContextRepository) Update(_a0 context.Context, _a1 *v1beta1.Context) (*models.Context, error)

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

type ContextRepository_Create_Call

type ContextRepository_Create_Call struct {
	*mock.Call
}

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

func (*ContextRepository_Create_Call) Return

func (*ContextRepository_Create_Call) Run

func (*ContextRepository_Create_Call) RunAndReturn

type ContextRepository_Expecter

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

func (*ContextRepository_Expecter) Create

func (_e *ContextRepository_Expecter) Create(_a0 interface{}, _a1 interface{}) *ContextRepository_Create_Call

Create is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *v1beta1.Context

func (*ContextRepository_Expecter) Get

func (_e *ContextRepository_Expecter) Get(_a0 interface{}, _a1 interface{}) *ContextRepository_Get_Call

Get is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *v1beta1.Context

func (*ContextRepository_Expecter) Update

func (_e *ContextRepository_Expecter) Update(_a0 interface{}, _a1 interface{}) *ContextRepository_Update_Call

Update is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *v1beta1.Context

type ContextRepository_Get_Call

type ContextRepository_Get_Call struct {
	*mock.Call
}

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

func (*ContextRepository_Get_Call) Return

func (*ContextRepository_Get_Call) Run

func (*ContextRepository_Get_Call) RunAndReturn

type ContextRepository_Update_Call

type ContextRepository_Update_Call struct {
	*mock.Call
}

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

func (*ContextRepository_Update_Call) Return

func (*ContextRepository_Update_Call) Run

func (*ContextRepository_Update_Call) RunAndReturn

type PolicyRepository

type PolicyRepository struct {
	mock.Mock
}

PolicyRepository is an autogenerated mock type for the PolicyRepository type

func NewPolicyRepository

func NewPolicyRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *PolicyRepository

NewPolicyRepository creates a new instance of PolicyRepository. 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 (*PolicyRepository) Create

func (_m *PolicyRepository) Create(_a0 context.Context, _a1 *v1beta1.Policy) (*models.Policy, error)

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

func (*PolicyRepository) EXPECT

func (*PolicyRepository) Get

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

func (*PolicyRepository) Update

func (_m *PolicyRepository) Update(_a0 context.Context, _a1 *v1beta1.Policy) (*models.Policy, error)

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

type PolicyRepository_Create_Call

type PolicyRepository_Create_Call struct {
	*mock.Call
}

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

func (*PolicyRepository_Create_Call) Return

func (*PolicyRepository_Create_Call) Run

func (*PolicyRepository_Create_Call) RunAndReturn

type PolicyRepository_Expecter

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

func (*PolicyRepository_Expecter) Create

func (_e *PolicyRepository_Expecter) Create(_a0 interface{}, _a1 interface{}) *PolicyRepository_Create_Call

Create is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *v1beta1.Policy

func (*PolicyRepository_Expecter) Get

func (_e *PolicyRepository_Expecter) Get(_a0 interface{}, _a1 interface{}) *PolicyRepository_Get_Call

Get is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *v1beta1.Policy

func (*PolicyRepository_Expecter) Update

func (_e *PolicyRepository_Expecter) Update(_a0 interface{}, _a1 interface{}) *PolicyRepository_Update_Call

Update is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *v1beta1.Policy

type PolicyRepository_Get_Call

type PolicyRepository_Get_Call struct {
	*mock.Call
}

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

func (*PolicyRepository_Get_Call) Return

func (*PolicyRepository_Get_Call) Run

func (*PolicyRepository_Get_Call) RunAndReturn

type PolicyRepository_Update_Call

type PolicyRepository_Update_Call struct {
	*mock.Call
}

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

func (*PolicyRepository_Update_Call) Return

func (*PolicyRepository_Update_Call) Run

func (*PolicyRepository_Update_Call) RunAndReturn

type RunRepository

type RunRepository struct {
	mock.Mock
}

RunRepository is an autogenerated mock type for the RunRepository type

func NewRunRepository

func NewRunRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *RunRepository

NewRunRepository creates a new instance of RunRepository. 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 (*RunRepository) Create

func (_m *RunRepository) Create(_a0 context.Context, _a1 *v1beta1.Stack) (*models.Run, error)

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

func (*RunRepository) EXPECT

func (_m *RunRepository) EXPECT() *RunRepository_Expecter

func (*RunRepository) Get

func (_m *RunRepository) Get(_a0 context.Context, _a1 *v1beta1.Run) (*models.Run, error)

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

type RunRepository_Create_Call

type RunRepository_Create_Call struct {
	*mock.Call
}

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

func (*RunRepository_Create_Call) Return

func (*RunRepository_Create_Call) Run

func (*RunRepository_Create_Call) RunAndReturn

type RunRepository_Expecter

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

func (*RunRepository_Expecter) Create

func (_e *RunRepository_Expecter) Create(_a0 interface{}, _a1 interface{}) *RunRepository_Create_Call

Create is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *v1beta1.Stack

func (*RunRepository_Expecter) Get

func (_e *RunRepository_Expecter) Get(_a0 interface{}, _a1 interface{}) *RunRepository_Get_Call

Get is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *v1beta1.Run

type RunRepository_Get_Call

type RunRepository_Get_Call struct {
	*mock.Call
}

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

func (*RunRepository_Get_Call) Return

func (*RunRepository_Get_Call) Run

func (*RunRepository_Get_Call) RunAndReturn

type SpaceRepository

type SpaceRepository struct {
	mock.Mock
}

SpaceRepository is an autogenerated mock type for the SpaceRepository type

func NewSpaceRepository

func NewSpaceRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *SpaceRepository

NewSpaceRepository creates a new instance of SpaceRepository. 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 (*SpaceRepository) Create

func (_m *SpaceRepository) Create(_a0 context.Context, _a1 *v1beta1.Space) (*models.Space, error)

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

func (*SpaceRepository) EXPECT

func (*SpaceRepository) Get

func (_m *SpaceRepository) Get(_a0 context.Context, _a1 *v1beta1.Space) (*models.Space, error)

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

func (*SpaceRepository) Update

func (_m *SpaceRepository) Update(_a0 context.Context, _a1 *v1beta1.Space) (*models.Space, error)

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

type SpaceRepository_Create_Call

type SpaceRepository_Create_Call struct {
	*mock.Call
}

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

func (*SpaceRepository_Create_Call) Return

func (*SpaceRepository_Create_Call) Run

func (*SpaceRepository_Create_Call) RunAndReturn

type SpaceRepository_Expecter

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

func (*SpaceRepository_Expecter) Create

func (_e *SpaceRepository_Expecter) Create(_a0 interface{}, _a1 interface{}) *SpaceRepository_Create_Call

Create is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *v1beta1.Space

func (*SpaceRepository_Expecter) Get

func (_e *SpaceRepository_Expecter) Get(_a0 interface{}, _a1 interface{}) *SpaceRepository_Get_Call

Get is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *v1beta1.Space

func (*SpaceRepository_Expecter) Update

func (_e *SpaceRepository_Expecter) Update(_a0 interface{}, _a1 interface{}) *SpaceRepository_Update_Call

Update is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *v1beta1.Space

type SpaceRepository_Get_Call

type SpaceRepository_Get_Call struct {
	*mock.Call
}

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

func (*SpaceRepository_Get_Call) Return

func (*SpaceRepository_Get_Call) Run

func (*SpaceRepository_Get_Call) RunAndReturn

type SpaceRepository_Update_Call

type SpaceRepository_Update_Call struct {
	*mock.Call
}

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

func (*SpaceRepository_Update_Call) Return

func (*SpaceRepository_Update_Call) Run

func (*SpaceRepository_Update_Call) RunAndReturn

type StackRepository

type StackRepository struct {
	mock.Mock
}

StackRepository is an autogenerated mock type for the StackRepository type

func NewStackRepository

func NewStackRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *StackRepository

NewStackRepository creates a new instance of StackRepository. 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 (*StackRepository) Create

func (_m *StackRepository) Create(_a0 context.Context, _a1 *v1beta1.Stack) (*models.Stack, error)

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

func (*StackRepository) EXPECT

func (*StackRepository) Get

func (_m *StackRepository) Get(_a0 context.Context, _a1 *v1beta1.Stack) (*models.Stack, error)

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

func (*StackRepository) Update

func (_m *StackRepository) Update(_a0 context.Context, _a1 *v1beta1.Stack) (*models.Stack, error)

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

type StackRepository_Create_Call

type StackRepository_Create_Call struct {
	*mock.Call
}

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

func (*StackRepository_Create_Call) Return

func (*StackRepository_Create_Call) Run

func (*StackRepository_Create_Call) RunAndReturn

type StackRepository_Expecter

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

func (*StackRepository_Expecter) Create

func (_e *StackRepository_Expecter) Create(_a0 interface{}, _a1 interface{}) *StackRepository_Create_Call

Create is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *v1beta1.Stack

func (*StackRepository_Expecter) Get

func (_e *StackRepository_Expecter) Get(_a0 interface{}, _a1 interface{}) *StackRepository_Get_Call

Get is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *v1beta1.Stack

func (*StackRepository_Expecter) Update

func (_e *StackRepository_Expecter) Update(_a0 interface{}, _a1 interface{}) *StackRepository_Update_Call

Update is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *v1beta1.Stack

type StackRepository_Get_Call

type StackRepository_Get_Call struct {
	*mock.Call
}

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

func (*StackRepository_Get_Call) Return

func (*StackRepository_Get_Call) Run

func (*StackRepository_Get_Call) RunAndReturn

type StackRepository_Update_Call

type StackRepository_Update_Call struct {
	*mock.Call
}

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

func (*StackRepository_Update_Call) Return

func (*StackRepository_Update_Call) Run

func (*StackRepository_Update_Call) RunAndReturn

Jump to

Keyboard shortcuts

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