mocks

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 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 AsyncWriter

type AsyncWriter struct {
	mock.Mock
}

AsyncWriter is an autogenerated mock type for the AsyncWriter type

func NewAsyncWriter

func NewAsyncWriter(t mockConstructorTestingTNewAsyncWriter) *AsyncWriter

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

func (*AsyncWriter) Close

func (_m *AsyncWriter) Close(ctx context.Context) error

Close provides a mock function with given fields: ctx

func (*AsyncWriter) EXPECT

func (_m *AsyncWriter) EXPECT() *AsyncWriter_Expecter

func (*AsyncWriter) Flush

func (_m *AsyncWriter) Flush(ctx context.Context) error

Flush provides a mock function with given fields: ctx

func (*AsyncWriter) Queue

func (_m *AsyncWriter) Queue(ctx context.Context, model interface{}) error

Queue provides a mock function with given fields: ctx, model

type AsyncWriter_Close_Call

type AsyncWriter_Close_Call struct {
	*mock.Call
}

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

func (*AsyncWriter_Close_Call) Return

func (*AsyncWriter_Close_Call) Run

func (*AsyncWriter_Close_Call) RunAndReturn

func (_c *AsyncWriter_Close_Call) RunAndReturn(run func(context.Context) error) *AsyncWriter_Close_Call

type AsyncWriter_Expecter

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

func (*AsyncWriter_Expecter) Close

func (_e *AsyncWriter_Expecter) Close(ctx interface{}) *AsyncWriter_Close_Call

Close is a helper method to define mock.On call

  • ctx context.Context

func (*AsyncWriter_Expecter) Flush

func (_e *AsyncWriter_Expecter) Flush(ctx interface{}) *AsyncWriter_Flush_Call

Flush is a helper method to define mock.On call

  • ctx context.Context

func (*AsyncWriter_Expecter) Queue

func (_e *AsyncWriter_Expecter) Queue(ctx interface{}, model interface{}) *AsyncWriter_Queue_Call

Queue is a helper method to define mock.On call

  • ctx context.Context
  • model interface{}

type AsyncWriter_Flush_Call

type AsyncWriter_Flush_Call struct {
	*mock.Call
}

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

func (*AsyncWriter_Flush_Call) Return

func (*AsyncWriter_Flush_Call) Run

func (*AsyncWriter_Flush_Call) RunAndReturn

func (_c *AsyncWriter_Flush_Call) RunAndReturn(run func(context.Context) error) *AsyncWriter_Flush_Call

type AsyncWriter_Queue_Call

type AsyncWriter_Queue_Call struct {
	*mock.Call
}

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

func (*AsyncWriter_Queue_Call) Return

func (*AsyncWriter_Queue_Call) Run

func (_c *AsyncWriter_Queue_Call) Run(run func(ctx context.Context, model interface{})) *AsyncWriter_Queue_Call

func (*AsyncWriter_Queue_Call) RunAndReturn

func (_c *AsyncWriter_Queue_Call) RunAndReturn(run func(context.Context, interface{}) error) *AsyncWriter_Queue_Call

type Provider

type Provider struct {
	mock.Mock
}

Provider is an autogenerated mock type for the Provider type

func NewProvider

func NewProvider(t mockConstructorTestingTNewProvider) *Provider

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

func (*Provider) BulkWriter

func (_m *Provider) BulkWriter(ctx context.Context, collection collections.Collection, opts ...storedb.WriterOption) (storedb.AsyncWriter, error)

BulkWriter provides a mock function with given fields: ctx, collection, opts

func (*Provider) Clean added in v1.3.1

func (_m *Provider) Clean(ctx context.Context, runId string, cluster string) error

Clean provides a mock function with given fields: ctx, runId, cluster

func (*Provider) Close

func (_m *Provider) Close(ctx context.Context) error

Close provides a mock function with given fields: ctx

func (*Provider) EXPECT

func (_m *Provider) EXPECT() *Provider_Expecter

func (*Provider) HealthCheck

func (_m *Provider) HealthCheck(ctx context.Context) (bool, error)

HealthCheck provides a mock function with given fields: ctx

func (*Provider) Name

func (_m *Provider) Name() string

Name provides a mock function with given fields:

func (*Provider) Prepare added in v1.1.0

func (_m *Provider) Prepare(ctx context.Context) error

Prepare provides a mock function with given fields: ctx

func (*Provider) Reader added in v1.2.0

func (_m *Provider) Reader() interface{}

Reader provides a mock function with given fields:

type Provider_BulkWriter_Call

type Provider_BulkWriter_Call struct {
	*mock.Call
}

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

func (*Provider_BulkWriter_Call) Return

func (*Provider_BulkWriter_Call) Run

type Provider_Clean_Call added in v1.3.1

type Provider_Clean_Call struct {
	*mock.Call
}

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

func (*Provider_Clean_Call) Return added in v1.3.1

func (*Provider_Clean_Call) Run added in v1.3.1

func (_c *Provider_Clean_Call) Run(run func(ctx context.Context, runId string, cluster string)) *Provider_Clean_Call

func (*Provider_Clean_Call) RunAndReturn added in v1.3.1

func (_c *Provider_Clean_Call) RunAndReturn(run func(context.Context, string, string) error) *Provider_Clean_Call

type Provider_Close_Call

type Provider_Close_Call struct {
	*mock.Call
}

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

func (*Provider_Close_Call) Return

func (*Provider_Close_Call) Run

func (_c *Provider_Close_Call) Run(run func(ctx context.Context)) *Provider_Close_Call

func (*Provider_Close_Call) RunAndReturn

func (_c *Provider_Close_Call) RunAndReturn(run func(context.Context) error) *Provider_Close_Call

type Provider_Expecter

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

func (*Provider_Expecter) BulkWriter

func (_e *Provider_Expecter) BulkWriter(ctx interface{}, collection interface{}, opts ...interface{}) *Provider_BulkWriter_Call

BulkWriter is a helper method to define mock.On call

  • ctx context.Context
  • collection collections.Collection
  • opts ...storedb.WriterOption

func (*Provider_Expecter) Clean added in v1.3.1

func (_e *Provider_Expecter) Clean(ctx interface{}, runId interface{}, cluster interface{}) *Provider_Clean_Call

Clean is a helper method to define mock.On call

  • ctx context.Context
  • runId string
  • cluster string

func (*Provider_Expecter) Close

func (_e *Provider_Expecter) Close(ctx interface{}) *Provider_Close_Call

Close is a helper method to define mock.On call

  • ctx context.Context

func (*Provider_Expecter) HealthCheck

func (_e *Provider_Expecter) HealthCheck(ctx interface{}) *Provider_HealthCheck_Call

HealthCheck is a helper method to define mock.On call

  • ctx context.Context

func (*Provider_Expecter) Name

Name is a helper method to define mock.On call

func (*Provider_Expecter) Prepare added in v1.1.0

func (_e *Provider_Expecter) Prepare(ctx interface{}) *Provider_Prepare_Call

Prepare is a helper method to define mock.On call

  • ctx context.Context

func (*Provider_Expecter) Reader added in v1.2.0

Reader is a helper method to define mock.On call

type Provider_HealthCheck_Call

type Provider_HealthCheck_Call struct {
	*mock.Call
}

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

func (*Provider_HealthCheck_Call) Return

func (*Provider_HealthCheck_Call) Run

func (*Provider_HealthCheck_Call) RunAndReturn

type Provider_Name_Call

type Provider_Name_Call struct {
	*mock.Call
}

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

func (*Provider_Name_Call) Return

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

func (*Provider_Name_Call) Run

func (_c *Provider_Name_Call) Run(run func()) *Provider_Name_Call

func (*Provider_Name_Call) RunAndReturn

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

type Provider_Prepare_Call added in v1.1.0

type Provider_Prepare_Call struct {
	*mock.Call
}

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

func (*Provider_Prepare_Call) Return added in v1.1.0

func (*Provider_Prepare_Call) Run added in v1.1.0

func (*Provider_Prepare_Call) RunAndReturn added in v1.1.0

func (_c *Provider_Prepare_Call) RunAndReturn(run func(context.Context) error) *Provider_Prepare_Call

type Provider_Reader_Call added in v1.2.0

type Provider_Reader_Call struct {
	*mock.Call
}

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

func (*Provider_Reader_Call) Return added in v1.2.0

func (_c *Provider_Reader_Call) Return(_a0 interface{}) *Provider_Reader_Call

func (*Provider_Reader_Call) Run added in v1.2.0

func (_c *Provider_Reader_Call) Run(run func()) *Provider_Reader_Call

func (*Provider_Reader_Call) RunAndReturn added in v1.2.0

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

Jump to

Keyboard shortcuts

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