mocks

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 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 ModelTransformer

type ModelTransformer struct {
	mock.Mock
}

ModelTransformer is an autogenerated mock type for the ModelTransformer type

func NewModelTransformer

func NewModelTransformer(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

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 Output added in v0.26.0

type Output struct {
	mock.Mock
}

Output is an autogenerated mock type for the Output type

func NewOutput added in v0.26.0

func NewOutput(t interface {
	mock.TestingT
	Cleanup(func())
}) *Output

NewOutput creates a new instance of Output. 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 (*Output) EXPECT added in v0.26.0

func (_m *Output) EXPECT() *Output_Expecter

func (*Output) Persist added in v0.26.0

func (_m *Output) Persist(ctx context.Context, model mdlsub.Model, op string) error

Persist provides a mock function with given fields: ctx, model, op

type Output_Expecter added in v0.26.0

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

func (*Output_Expecter) Persist added in v0.26.0

func (_e *Output_Expecter) Persist(ctx interface{}, model interface{}, op interface{}) *Output_Persist_Call

Persist is a helper method to define mock.On call

  • ctx context.Context
  • model mdlsub.Model
  • op string

type Output_Persist_Call added in v0.26.0

type Output_Persist_Call struct {
	*mock.Call
}

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

func (*Output_Persist_Call) Return added in v0.26.0

func (*Output_Persist_Call) Run added in v0.26.0

func (_c *Output_Persist_Call) Run(run func(ctx context.Context, model mdlsub.Model, op string)) *Output_Persist_Call

func (*Output_Persist_Call) RunAndReturn added in v0.26.0

type Publisher

type Publisher struct {
	mock.Mock
}

Publisher is an autogenerated mock type for the Publisher type

func NewPublisher

func NewPublisher(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

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

type SubscriberCore added in v0.26.0

type SubscriberCore struct {
	mock.Mock
}

SubscriberCore is an autogenerated mock type for the SubscriberCore type

func NewSubscriberCore added in v0.26.0

func NewSubscriberCore(t interface {
	mock.TestingT
	Cleanup(func())
}) *SubscriberCore

NewSubscriberCore creates a new instance of SubscriberCore. 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 (*SubscriberCore) EXPECT added in v0.26.0

func (*SubscriberCore) GetLatestModelIdVersion added in v0.26.0

func (_m *SubscriberCore) GetLatestModelIdVersion(modelId mdl.ModelId) (int, error)

GetLatestModelIdVersion provides a mock function with given fields: modelId

func (*SubscriberCore) GetModelIds added in v0.26.0

func (_m *SubscriberCore) GetModelIds() []string

GetModelIds provides a mock function with given fields:

func (*SubscriberCore) GetOutput added in v0.26.0

func (_m *SubscriberCore) GetOutput(spec *mdlsub.ModelSpecification) (mdlsub.Output, error)

GetOutput provides a mock function with given fields: spec

func (*SubscriberCore) GetTransformer added in v0.26.0

GetTransformer provides a mock function with given fields: spec

func (*SubscriberCore) Persist added in v0.26.0

func (_m *SubscriberCore) Persist(ctx context.Context, spec *mdlsub.ModelSpecification, model mdlsub.Model) error

Persist provides a mock function with given fields: ctx, spec, model

func (*SubscriberCore) Transform added in v0.26.0

func (_m *SubscriberCore) Transform(ctx context.Context, spec *mdlsub.ModelSpecification, input interface{}) (mdlsub.Model, error)

Transform provides a mock function with given fields: ctx, spec, input

type SubscriberCore_Expecter added in v0.26.0

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

func (*SubscriberCore_Expecter) GetLatestModelIdVersion added in v0.26.0

func (_e *SubscriberCore_Expecter) GetLatestModelIdVersion(modelId interface{}) *SubscriberCore_GetLatestModelIdVersion_Call

GetLatestModelIdVersion is a helper method to define mock.On call

  • modelId mdl.ModelId

func (*SubscriberCore_Expecter) GetModelIds added in v0.26.0

GetModelIds is a helper method to define mock.On call

func (*SubscriberCore_Expecter) GetOutput added in v0.26.0

func (_e *SubscriberCore_Expecter) GetOutput(spec interface{}) *SubscriberCore_GetOutput_Call

GetOutput is a helper method to define mock.On call

  • spec *mdlsub.ModelSpecification

func (*SubscriberCore_Expecter) GetTransformer added in v0.26.0

func (_e *SubscriberCore_Expecter) GetTransformer(spec interface{}) *SubscriberCore_GetTransformer_Call

GetTransformer is a helper method to define mock.On call

  • spec *mdlsub.ModelSpecification

func (*SubscriberCore_Expecter) Persist added in v0.26.0

func (_e *SubscriberCore_Expecter) Persist(ctx interface{}, spec interface{}, model interface{}) *SubscriberCore_Persist_Call

Persist is a helper method to define mock.On call

  • ctx context.Context
  • spec *mdlsub.ModelSpecification
  • model mdlsub.Model

func (*SubscriberCore_Expecter) Transform added in v0.26.0

func (_e *SubscriberCore_Expecter) Transform(ctx interface{}, spec interface{}, input interface{}) *SubscriberCore_Transform_Call

Transform is a helper method to define mock.On call

  • ctx context.Context
  • spec *mdlsub.ModelSpecification
  • input interface{}

type SubscriberCore_GetLatestModelIdVersion_Call added in v0.26.0

type SubscriberCore_GetLatestModelIdVersion_Call struct {
	*mock.Call
}

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

func (*SubscriberCore_GetLatestModelIdVersion_Call) Return added in v0.26.0

func (*SubscriberCore_GetLatestModelIdVersion_Call) Run added in v0.26.0

func (*SubscriberCore_GetLatestModelIdVersion_Call) RunAndReturn added in v0.26.0

type SubscriberCore_GetModelIds_Call added in v0.26.0

type SubscriberCore_GetModelIds_Call struct {
	*mock.Call
}

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

func (*SubscriberCore_GetModelIds_Call) Return added in v0.26.0

func (*SubscriberCore_GetModelIds_Call) Run added in v0.26.0

func (*SubscriberCore_GetModelIds_Call) RunAndReturn added in v0.26.0

type SubscriberCore_GetOutput_Call added in v0.26.0

type SubscriberCore_GetOutput_Call struct {
	*mock.Call
}

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

func (*SubscriberCore_GetOutput_Call) Return added in v0.26.0

func (*SubscriberCore_GetOutput_Call) Run added in v0.26.0

func (*SubscriberCore_GetOutput_Call) RunAndReturn added in v0.26.0

type SubscriberCore_GetTransformer_Call added in v0.26.0

type SubscriberCore_GetTransformer_Call struct {
	*mock.Call
}

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

func (*SubscriberCore_GetTransformer_Call) Return added in v0.26.0

func (*SubscriberCore_GetTransformer_Call) Run added in v0.26.0

func (*SubscriberCore_GetTransformer_Call) RunAndReturn added in v0.26.0

type SubscriberCore_Persist_Call added in v0.26.0

type SubscriberCore_Persist_Call struct {
	*mock.Call
}

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

func (*SubscriberCore_Persist_Call) Return added in v0.26.0

func (*SubscriberCore_Persist_Call) Run added in v0.26.0

func (*SubscriberCore_Persist_Call) RunAndReturn added in v0.26.0

type SubscriberCore_Transform_Call added in v0.26.0

type SubscriberCore_Transform_Call struct {
	*mock.Call
}

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

func (*SubscriberCore_Transform_Call) Return added in v0.26.0

func (*SubscriberCore_Transform_Call) Run added in v0.26.0

func (_c *SubscriberCore_Transform_Call) Run(run func(ctx context.Context, spec *mdlsub.ModelSpecification, input interface{})) *SubscriberCore_Transform_Call

func (*SubscriberCore_Transform_Call) RunAndReturn added in v0.26.0

Jump to

Keyboard shortcuts

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