mocks

package
v0.6.17 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 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 RelationService

type RelationService struct {
	mock.Mock
}

RelationService is an autogenerated mock type for the RelationService type

func NewRelationService

func NewRelationService(t interface {
	mock.TestingT
	Cleanup(func())
}) *RelationService

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

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

func (*RelationService) EXPECT

type RelationService_Create_Call

type RelationService_Create_Call struct {
	*mock.Call
}

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

func (*RelationService_Create_Call) Return

func (*RelationService_Create_Call) Run

func (*RelationService_Create_Call) RunAndReturn added in v0.6.5

type RelationService_Expecter

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

func (*RelationService_Expecter) Create

func (_e *RelationService_Expecter) Create(ctx interface{}, _a1 interface{}) *RelationService_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • _a1 relation.RelationV2

type RelationTransformer added in v0.6.5

type RelationTransformer struct {
	mock.Mock
}

RelationTransformer is an autogenerated mock type for the RelationTransformer type

func NewRelationTransformer added in v0.6.5

func NewRelationTransformer(t interface {
	mock.TestingT
	Cleanup(func())
}) *RelationTransformer

NewRelationTransformer creates a new instance of RelationTransformer. 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 (*RelationTransformer) EXPECT added in v0.6.5

func (*RelationTransformer) TransformRelation added in v0.6.5

func (_m *RelationTransformer) TransformRelation(ctx context.Context, rlt relation.RelationV2) (relation.RelationV2, error)

TransformRelation provides a mock function with given fields: ctx, rlt

type RelationTransformer_Expecter added in v0.6.5

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

func (*RelationTransformer_Expecter) TransformRelation added in v0.6.5

func (_e *RelationTransformer_Expecter) TransformRelation(ctx interface{}, rlt interface{}) *RelationTransformer_TransformRelation_Call

TransformRelation is a helper method to define mock.On call

  • ctx context.Context
  • rlt relation.RelationV2

type RelationTransformer_TransformRelation_Call added in v0.6.5

type RelationTransformer_TransformRelation_Call struct {
	*mock.Call
}

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

func (*RelationTransformer_TransformRelation_Call) Return added in v0.6.5

func (*RelationTransformer_TransformRelation_Call) Run added in v0.6.5

func (*RelationTransformer_TransformRelation_Call) RunAndReturn added in v0.6.5

type ResourceService

type ResourceService struct {
	mock.Mock
}

ResourceService is an autogenerated mock type for the ResourceService type

func NewResourceService

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

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

func (*ResourceService) EXPECT

type ResourceService_Create_Call

type ResourceService_Create_Call struct {
	*mock.Call
}

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

func (*ResourceService_Create_Call) Return

func (*ResourceService_Create_Call) Run

func (*ResourceService_Create_Call) RunAndReturn added in v0.6.5

type ResourceService_Expecter

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

func (*ResourceService_Expecter) Create

func (_e *ResourceService_Expecter) Create(ctx interface{}, _a1 interface{}) *ResourceService_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • _a1 resource.Resource

Jump to

Keyboard shortcuts

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