mocks

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 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, key cachekey.CacheKey, value interface{}) error

Queue provides a mock function with given fields: ctx, key, value

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{}, key interface{}, value interface{}) *AsyncWriter_Queue_Call

Queue is a helper method to define mock.On call

  • ctx context.Context
  • key cachekey.CacheKey
  • value 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, key cachekey.CacheKey, value interface{})) *AsyncWriter_Queue_Call

func (*AsyncWriter_Queue_Call) RunAndReturn

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

type CacheProvider

type CacheProvider struct {
	mock.Mock
}

CacheProvider is an autogenerated mock type for the CacheProvider type

func NewCacheProvider

func NewCacheProvider(t mockConstructorTestingTNewCacheProvider) *CacheProvider

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

func (*CacheProvider) BulkWriter

func (_m *CacheProvider) BulkWriter(ctx context.Context, opts ...cache.WriterOption) (cache.AsyncWriter, error)

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

func (*CacheProvider) Close

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

Close provides a mock function with given fields: ctx

func (*CacheProvider) EXPECT

func (_m *CacheProvider) EXPECT() *CacheProvider_Expecter

func (*CacheProvider) Get

Get provides a mock function with given fields: ctx, key

func (*CacheProvider) HealthCheck

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

HealthCheck provides a mock function with given fields: ctx

func (*CacheProvider) Name

func (_m *CacheProvider) Name() string

Name provides a mock function with given fields:

type CacheProvider_BulkWriter_Call

type CacheProvider_BulkWriter_Call struct {
	*mock.Call
}

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

func (*CacheProvider_BulkWriter_Call) Return

func (*CacheProvider_BulkWriter_Call) Run

func (*CacheProvider_BulkWriter_Call) RunAndReturn

type CacheProvider_Close_Call

type CacheProvider_Close_Call struct {
	*mock.Call
}

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

func (*CacheProvider_Close_Call) Return

func (*CacheProvider_Close_Call) Run

func (*CacheProvider_Close_Call) RunAndReturn

type CacheProvider_Expecter

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

func (*CacheProvider_Expecter) BulkWriter

func (_e *CacheProvider_Expecter) BulkWriter(ctx interface{}, opts ...interface{}) *CacheProvider_BulkWriter_Call

BulkWriter is a helper method to define mock.On call

  • ctx context.Context
  • opts ...cache.WriterOption

func (*CacheProvider_Expecter) Close

func (_e *CacheProvider_Expecter) Close(ctx interface{}) *CacheProvider_Close_Call

Close is a helper method to define mock.On call

  • ctx context.Context

func (*CacheProvider_Expecter) Get

func (_e *CacheProvider_Expecter) Get(ctx interface{}, key interface{}) *CacheProvider_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • key cachekey.CacheKey

func (*CacheProvider_Expecter) HealthCheck

func (_e *CacheProvider_Expecter) HealthCheck(ctx interface{}) *CacheProvider_HealthCheck_Call

HealthCheck is a helper method to define mock.On call

  • ctx context.Context

func (*CacheProvider_Expecter) Name

Name is a helper method to define mock.On call

type CacheProvider_Get_Call

type CacheProvider_Get_Call struct {
	*mock.Call
}

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

func (*CacheProvider_Get_Call) Return

func (*CacheProvider_Get_Call) Run

func (*CacheProvider_Get_Call) RunAndReturn

type CacheProvider_HealthCheck_Call

type CacheProvider_HealthCheck_Call struct {
	*mock.Call
}

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

func (*CacheProvider_HealthCheck_Call) Return

func (*CacheProvider_HealthCheck_Call) Run

func (*CacheProvider_HealthCheck_Call) RunAndReturn

type CacheProvider_Name_Call

type CacheProvider_Name_Call struct {
	*mock.Call
}

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

func (*CacheProvider_Name_Call) Return

func (*CacheProvider_Name_Call) Run

func (_c *CacheProvider_Name_Call) Run(run func()) *CacheProvider_Name_Call

func (*CacheProvider_Name_Call) RunAndReturn

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

type CacheReader

type CacheReader struct {
	mock.Mock
}

CacheReader is an autogenerated mock type for the CacheReader type

func NewCacheReader

func NewCacheReader(t mockConstructorTestingTNewCacheReader) *CacheReader

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

func (*CacheReader) Close

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

Close provides a mock function with given fields: ctx

func (*CacheReader) EXPECT

func (_m *CacheReader) EXPECT() *CacheReader_Expecter

func (*CacheReader) Get

Get provides a mock function with given fields: ctx, key

func (*CacheReader) HealthCheck

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

HealthCheck provides a mock function with given fields: ctx

func (*CacheReader) Name

func (_m *CacheReader) Name() string

Name provides a mock function with given fields:

type CacheReader_Close_Call

type CacheReader_Close_Call struct {
	*mock.Call
}

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

func (*CacheReader_Close_Call) Return

func (*CacheReader_Close_Call) Run

func (*CacheReader_Close_Call) RunAndReturn

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

type CacheReader_Expecter

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

func (*CacheReader_Expecter) Close

func (_e *CacheReader_Expecter) Close(ctx interface{}) *CacheReader_Close_Call

Close is a helper method to define mock.On call

  • ctx context.Context

func (*CacheReader_Expecter) Get

func (_e *CacheReader_Expecter) Get(ctx interface{}, key interface{}) *CacheReader_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • key cachekey.CacheKey

func (*CacheReader_Expecter) HealthCheck

func (_e *CacheReader_Expecter) HealthCheck(ctx interface{}) *CacheReader_HealthCheck_Call

HealthCheck is a helper method to define mock.On call

  • ctx context.Context

func (*CacheReader_Expecter) Name

Name is a helper method to define mock.On call

type CacheReader_Get_Call

type CacheReader_Get_Call struct {
	*mock.Call
}

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

func (*CacheReader_Get_Call) Return

func (*CacheReader_Get_Call) Run

func (*CacheReader_Get_Call) RunAndReturn

type CacheReader_HealthCheck_Call

type CacheReader_HealthCheck_Call struct {
	*mock.Call
}

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

func (*CacheReader_HealthCheck_Call) Return

func (*CacheReader_HealthCheck_Call) Run

func (*CacheReader_HealthCheck_Call) RunAndReturn

type CacheReader_Name_Call

type CacheReader_Name_Call struct {
	*mock.Call
}

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

func (*CacheReader_Name_Call) Return

func (*CacheReader_Name_Call) Run

func (_c *CacheReader_Name_Call) Run(run func()) *CacheReader_Name_Call

func (*CacheReader_Name_Call) RunAndReturn

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

Jump to

Keyboard shortcuts

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