mocks

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	mock.Mock
}

Builder is an autogenerated mock type for the Builder type

func NewBuilder

func NewBuilder(t mockConstructorTestingTNewBuilder) *Builder

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

func (*Builder) BatchSize

func (_m *Builder) BatchSize() int

BatchSize provides a mock function with given fields:

func (*Builder) EXPECT

func (_m *Builder) EXPECT() *Builder_Expecter

func (*Builder) Initialize

func (_m *Builder) Initialize(cfg *config.EdgeBuilderConfig, runtime *config.DynamicConfig) error

Initialize provides a mock function with given fields: cfg, runtime

func (*Builder) Label

func (_m *Builder) Label() string

Label provides a mock function with given fields:

func (*Builder) Name

func (_m *Builder) Name() string

Name provides a mock function with given fields:

func (*Builder) Processor

func (_m *Builder) Processor(_a0 context.Context, _a1 *converter.ObjectIDConverter, _a2 interface{}) (interface{}, error)

Processor provides a mock function with given fields: _a0, _a1, _a2

func (*Builder) Stream

Stream provides a mock function with given fields: ctx, store, _a2, process, complete

func (*Builder) Traversal

func (_m *Builder) Traversal() types.EdgeTraversal

Traversal provides a mock function with given fields:

type Builder_BatchSize_Call

type Builder_BatchSize_Call struct {
	*mock.Call
}

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

func (*Builder_BatchSize_Call) Return

func (*Builder_BatchSize_Call) Run

func (_c *Builder_BatchSize_Call) Run(run func()) *Builder_BatchSize_Call

func (*Builder_BatchSize_Call) RunAndReturn

func (_c *Builder_BatchSize_Call) RunAndReturn(run func() int) *Builder_BatchSize_Call

type Builder_Expecter

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

func (*Builder_Expecter) BatchSize

func (_e *Builder_Expecter) BatchSize() *Builder_BatchSize_Call

BatchSize is a helper method to define mock.On call

func (*Builder_Expecter) Initialize

func (_e *Builder_Expecter) Initialize(cfg interface{}, runtime interface{}) *Builder_Initialize_Call

Initialize is a helper method to define mock.On call

  • cfg *config.EdgeBuilderConfig
  • runtime *config.DynamicConfig

func (*Builder_Expecter) Label

func (_e *Builder_Expecter) Label() *Builder_Label_Call

Label is a helper method to define mock.On call

func (*Builder_Expecter) Name

func (_e *Builder_Expecter) Name() *Builder_Name_Call

Name is a helper method to define mock.On call

func (*Builder_Expecter) Processor

func (_e *Builder_Expecter) Processor(_a0 interface{}, _a1 interface{}, _a2 interface{}) *Builder_Processor_Call

Processor is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *converter.ObjectIDConverter
  • _a2 interface{}

func (*Builder_Expecter) Stream

func (_e *Builder_Expecter) Stream(ctx interface{}, store interface{}, _a2 interface{}, process interface{}, complete interface{}) *Builder_Stream_Call

Stream is a helper method to define mock.On call

  • ctx context.Context
  • store storedb.Provider
  • _a2 cache.CacheReader
  • process types.ProcessEntryCallback
  • complete types.CompleteQueryCallback

func (*Builder_Expecter) Traversal

func (_e *Builder_Expecter) Traversal() *Builder_Traversal_Call

Traversal is a helper method to define mock.On call

type Builder_Initialize_Call

type Builder_Initialize_Call struct {
	*mock.Call
}

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

func (*Builder_Initialize_Call) Return

func (*Builder_Initialize_Call) Run

func (*Builder_Initialize_Call) RunAndReturn

type Builder_Label_Call

type Builder_Label_Call struct {
	*mock.Call
}

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

func (*Builder_Label_Call) Return

func (_c *Builder_Label_Call) Return(_a0 string) *Builder_Label_Call

func (*Builder_Label_Call) Run

func (_c *Builder_Label_Call) Run(run func()) *Builder_Label_Call

func (*Builder_Label_Call) RunAndReturn

func (_c *Builder_Label_Call) RunAndReturn(run func() string) *Builder_Label_Call

type Builder_Name_Call

type Builder_Name_Call struct {
	*mock.Call
}

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

func (*Builder_Name_Call) Return

func (_c *Builder_Name_Call) Return(_a0 string) *Builder_Name_Call

func (*Builder_Name_Call) Run

func (_c *Builder_Name_Call) Run(run func()) *Builder_Name_Call

func (*Builder_Name_Call) RunAndReturn

func (_c *Builder_Name_Call) RunAndReturn(run func() string) *Builder_Name_Call

type Builder_Processor_Call

type Builder_Processor_Call struct {
	*mock.Call
}

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

func (*Builder_Processor_Call) Return

func (_c *Builder_Processor_Call) Return(_a0 interface{}, _a1 error) *Builder_Processor_Call

func (*Builder_Processor_Call) Run

func (_c *Builder_Processor_Call) Run(run func(_a0 context.Context, _a1 *converter.ObjectIDConverter, _a2 interface{})) *Builder_Processor_Call

func (*Builder_Processor_Call) RunAndReturn

func (_c *Builder_Processor_Call) RunAndReturn(run func(context.Context, *converter.ObjectIDConverter, interface{}) (interface{}, error)) *Builder_Processor_Call

type Builder_Stream_Call

type Builder_Stream_Call struct {
	*mock.Call
}

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

func (*Builder_Stream_Call) Return

func (*Builder_Stream_Call) Run

type Builder_Traversal_Call

type Builder_Traversal_Call struct {
	*mock.Call
}

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

func (*Builder_Traversal_Call) Return

func (*Builder_Traversal_Call) Run

func (_c *Builder_Traversal_Call) Run(run func()) *Builder_Traversal_Call

func (*Builder_Traversal_Call) RunAndReturn

func (_c *Builder_Traversal_Call) RunAndReturn(run func() types.EdgeTraversal) *Builder_Traversal_Call

Jump to

Keyboard shortcuts

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