mocks

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModelTransformer

type ModelTransformer struct {
	mock.Mock
}

ModelTransformer is an autogenerated mock type for the ModelTransformer type

func NewModelTransformer

func NewModelTransformer(t mockConstructorTestingTNewModelTransformer) *ModelTransformer

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

func (*ModelTransformer) EXPECT

func (*ModelTransformer) GetInput

func (_m *ModelTransformer) GetInput() interface{}

GetInput provides a mock function with given fields:

func (*ModelTransformer) Transform

func (_m *ModelTransformer) Transform(ctx context.Context, inp interface{}) (mdlsub.Model, error)

Transform provides a mock function with given fields: ctx, inp

type ModelTransformer_Expecter

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

func (*ModelTransformer_Expecter) GetInput

GetInput is a helper method to define mock.On call

func (*ModelTransformer_Expecter) Transform

func (_e *ModelTransformer_Expecter) Transform(ctx interface{}, inp interface{}) *ModelTransformer_Transform_Call

Transform is a helper method to define mock.On call

  • ctx context.Context
  • inp interface{}

type ModelTransformer_GetInput_Call

type ModelTransformer_GetInput_Call struct {
	*mock.Call
}

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

func (*ModelTransformer_GetInput_Call) Return

func (*ModelTransformer_GetInput_Call) Run

func (*ModelTransformer_GetInput_Call) RunAndReturn

func (_c *ModelTransformer_GetInput_Call) RunAndReturn(run func() interface{}) *ModelTransformer_GetInput_Call

type ModelTransformer_Transform_Call

type ModelTransformer_Transform_Call struct {
	*mock.Call
}

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

func (*ModelTransformer_Transform_Call) Return

func (*ModelTransformer_Transform_Call) Run

func (_c *ModelTransformer_Transform_Call) Run(run func(ctx context.Context, inp interface{})) *ModelTransformer_Transform_Call

func (*ModelTransformer_Transform_Call) RunAndReturn

type Publisher

type Publisher struct {
	mock.Mock
}

Publisher is an autogenerated mock type for the Publisher type

func NewPublisher

func NewPublisher(t mockConstructorTestingTNewPublisher) *Publisher

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

func (*Publisher) EXPECT

func (_m *Publisher) EXPECT() *Publisher_Expecter

func (*Publisher) Publish

func (_m *Publisher) Publish(ctx context.Context, typ string, version int, value interface{}, customAttributes ...map[string]string) error

Publish provides a mock function with given fields: ctx, typ, version, value, customAttributes

func (*Publisher) PublishBatch

func (_m *Publisher) PublishBatch(ctx context.Context, typ string, version int, values []interface{}, customAttributes ...map[string]string) error

PublishBatch provides a mock function with given fields: ctx, typ, version, values, customAttributes

type Publisher_Expecter

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

func (*Publisher_Expecter) Publish

func (_e *Publisher_Expecter) Publish(ctx interface{}, typ interface{}, version interface{}, value interface{}, customAttributes ...interface{}) *Publisher_Publish_Call

Publish is a helper method to define mock.On call

  • ctx context.Context
  • typ string
  • version int
  • value interface{}
  • customAttributes ...map[string]string

func (*Publisher_Expecter) PublishBatch

func (_e *Publisher_Expecter) PublishBatch(ctx interface{}, typ interface{}, version interface{}, values interface{}, customAttributes ...interface{}) *Publisher_PublishBatch_Call

PublishBatch is a helper method to define mock.On call

  • ctx context.Context
  • typ string
  • version int
  • values []interface{}
  • customAttributes ...map[string]string

type Publisher_PublishBatch_Call

type Publisher_PublishBatch_Call struct {
	*mock.Call
}

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

func (*Publisher_PublishBatch_Call) Return

func (*Publisher_PublishBatch_Call) Run

func (_c *Publisher_PublishBatch_Call) Run(run func(ctx context.Context, typ string, version int, values []interface{}, customAttributes ...map[string]string)) *Publisher_PublishBatch_Call

func (*Publisher_PublishBatch_Call) RunAndReturn

func (_c *Publisher_PublishBatch_Call) RunAndReturn(run func(context.Context, string, int, []interface{}, ...map[string]string) error) *Publisher_PublishBatch_Call

type Publisher_Publish_Call

type Publisher_Publish_Call struct {
	*mock.Call
}

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

func (*Publisher_Publish_Call) Return

func (*Publisher_Publish_Call) Run

func (_c *Publisher_Publish_Call) Run(run func(ctx context.Context, typ string, version int, value interface{}, customAttributes ...map[string]string)) *Publisher_Publish_Call

func (*Publisher_Publish_Call) RunAndReturn

func (_c *Publisher_Publish_Call) RunAndReturn(run func(context.Context, string, int, interface{}, ...map[string]string) error) *Publisher_Publish_Call

Jump to

Keyboard shortcuts

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