mocks

package
v0.63.2 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 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 BatchRunner

type BatchRunner struct {
	mock.Mock
}

BatchRunner is an autogenerated mock type for the BatchRunner type

func NewBatchRunner

func NewBatchRunner(t interface {
	mock.TestingT
	Cleanup(func())
}) *BatchRunner

NewBatchRunner creates a new instance of BatchRunner. 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 (*BatchRunner) EXPECT

func (_m *BatchRunner) EXPECT() *BatchRunner_Expecter

func (*BatchRunner) Run

func (_m *BatchRunner) Run(ctx context.Context) error

Run provides a mock function with given fields: ctx

type BatchRunner_Expecter

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

func (*BatchRunner_Expecter) Run

func (_e *BatchRunner_Expecter) Run(ctx interface{}) *BatchRunner_Run_Call

Run is a helper method to define mock.On call

  • ctx context.Context

type BatchRunner_Run_Call

type BatchRunner_Run_Call struct {
	*mock.Call
}

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

func (*BatchRunner_Run_Call) Return

func (*BatchRunner_Run_Call) Run

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

func (*BatchRunner_Run_Call) RunAndReturn

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

type DataExporter added in v0.50.0

type DataExporter struct {
	mock.Mock
}

DataExporter is an autogenerated mock type for the DataExporter type

func NewDataExporter added in v0.50.0

func NewDataExporter(t interface {
	mock.TestingT
	Cleanup(func())
}) *DataExporter

NewDataExporter creates a new instance of DataExporter. 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 (*DataExporter) EXPECT added in v0.50.0

func (_m *DataExporter) EXPECT() *DataExporter_Expecter

func (*DataExporter) ExportAllObjects added in v0.50.0

func (_m *DataExporter) ExportAllObjects(ctx context.Context) (blob.StoreEntries, error)

ExportAllObjects provides a mock function with given fields: ctx

type DataExporter_Expecter added in v0.50.0

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

func (*DataExporter_Expecter) ExportAllObjects added in v0.50.0

func (_e *DataExporter_Expecter) ExportAllObjects(ctx interface{}) *DataExporter_ExportAllObjects_Call

ExportAllObjects is a helper method to define mock.On call

  • ctx context.Context

type DataExporter_ExportAllObjects_Call added in v0.50.0

type DataExporter_ExportAllObjects_Call struct {
	*mock.Call
}

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

func (*DataExporter_ExportAllObjects_Call) Return added in v0.50.0

func (*DataExporter_ExportAllObjects_Call) Run added in v0.50.0

func (*DataExporter_ExportAllObjects_Call) RunAndReturn added in v0.50.0

type FixtureReader added in v0.48.0

type FixtureReader struct {
	mock.Mock
}

FixtureReader is an autogenerated mock type for the FixtureReader type

func NewFixtureReader added in v0.48.0

func NewFixtureReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *FixtureReader

NewFixtureReader creates a new instance of FixtureReader. 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 (*FixtureReader) Chan added in v0.48.0

func (_m *FixtureReader) Chan() <-chan *blob.Object

Chan provides a mock function with no fields

func (*FixtureReader) EXPECT added in v0.48.0

func (_m *FixtureReader) EXPECT() *FixtureReader_Expecter

func (*FixtureReader) Run added in v0.48.0

func (_m *FixtureReader) Run(ctx context.Context) error

Run provides a mock function with given fields: ctx

func (*FixtureReader) Source added in v0.48.0

func (_m *FixtureReader) Source() string

Source provides a mock function with no fields

func (*FixtureReader) Stop added in v0.48.0

func (_m *FixtureReader) Stop()

Stop provides a mock function with no fields

type FixtureReader_Chan_Call added in v0.48.0

type FixtureReader_Chan_Call struct {
	*mock.Call
}

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

func (*FixtureReader_Chan_Call) Return added in v0.48.0

func (*FixtureReader_Chan_Call) Run added in v0.48.0

func (_c *FixtureReader_Chan_Call) Run(run func()) *FixtureReader_Chan_Call

func (*FixtureReader_Chan_Call) RunAndReturn added in v0.48.0

func (_c *FixtureReader_Chan_Call) RunAndReturn(run func() <-chan *blob.Object) *FixtureReader_Chan_Call

type FixtureReader_Expecter added in v0.48.0

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

func (*FixtureReader_Expecter) Chan added in v0.48.0

Chan is a helper method to define mock.On call

func (*FixtureReader_Expecter) Run added in v0.48.0

func (_e *FixtureReader_Expecter) Run(ctx interface{}) *FixtureReader_Run_Call

Run is a helper method to define mock.On call

  • ctx context.Context

func (*FixtureReader_Expecter) Source added in v0.48.0

Source is a helper method to define mock.On call

func (*FixtureReader_Expecter) Stop added in v0.48.0

Stop is a helper method to define mock.On call

type FixtureReader_Run_Call added in v0.48.0

type FixtureReader_Run_Call struct {
	*mock.Call
}

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

func (*FixtureReader_Run_Call) Return added in v0.48.0

func (*FixtureReader_Run_Call) Run added in v0.48.0

func (*FixtureReader_Run_Call) RunAndReturn added in v0.48.0

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

type FixtureReader_Source_Call added in v0.48.0

type FixtureReader_Source_Call struct {
	*mock.Call
}

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

func (*FixtureReader_Source_Call) Return added in v0.48.0

func (*FixtureReader_Source_Call) Run added in v0.48.0

func (*FixtureReader_Source_Call) RunAndReturn added in v0.48.0

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

type FixtureReader_Stop_Call added in v0.48.0

type FixtureReader_Stop_Call struct {
	*mock.Call
}

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

func (*FixtureReader_Stop_Call) Return added in v0.48.0

func (*FixtureReader_Stop_Call) Run added in v0.48.0

func (_c *FixtureReader_Stop_Call) Run(run func()) *FixtureReader_Stop_Call

func (*FixtureReader_Stop_Call) RunAndReturn added in v0.48.0

func (_c *FixtureReader_Stop_Call) RunAndReturn(run func()) *FixtureReader_Stop_Call

type ReadCloser

type ReadCloser struct {
	mock.Mock
}

ReadCloser is an autogenerated mock type for the ReadCloser type

func NewReadCloser

func NewReadCloser(t interface {
	mock.TestingT
	Cleanup(func())
}) *ReadCloser

NewReadCloser creates a new instance of ReadCloser. 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 (*ReadCloser) Close

func (_m *ReadCloser) Close() error

Close provides a mock function with no fields

func (*ReadCloser) EXPECT

func (_m *ReadCloser) EXPECT() *ReadCloser_Expecter

func (*ReadCloser) Read

func (_m *ReadCloser) Read(p []byte) (int, error)

Read provides a mock function with given fields: p

type ReadCloser_Close_Call

type ReadCloser_Close_Call struct {
	*mock.Call
}

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

func (*ReadCloser_Close_Call) Return

func (*ReadCloser_Close_Call) Run

func (_c *ReadCloser_Close_Call) Run(run func()) *ReadCloser_Close_Call

func (*ReadCloser_Close_Call) RunAndReturn

func (_c *ReadCloser_Close_Call) RunAndReturn(run func() error) *ReadCloser_Close_Call

type ReadCloser_Expecter

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

func (*ReadCloser_Expecter) Close

Close is a helper method to define mock.On call

func (*ReadCloser_Expecter) Read

func (_e *ReadCloser_Expecter) Read(p interface{}) *ReadCloser_Read_Call

Read is a helper method to define mock.On call

  • p []byte

type ReadCloser_Read_Call

type ReadCloser_Read_Call struct {
	*mock.Call
}

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

func (*ReadCloser_Read_Call) Return

func (_c *ReadCloser_Read_Call) Return(n int, err error) *ReadCloser_Read_Call

func (*ReadCloser_Read_Call) Run

func (_c *ReadCloser_Read_Call) Run(run func(p []byte)) *ReadCloser_Read_Call

func (*ReadCloser_Read_Call) RunAndReturn

func (_c *ReadCloser_Read_Call) RunAndReturn(run func([]byte) (int, error)) *ReadCloser_Read_Call

type ReadSeekerCloser

type ReadSeekerCloser struct {
	mock.Mock
}

ReadSeekerCloser is an autogenerated mock type for the ReadSeekerCloser type

func NewReadSeekerCloser

func NewReadSeekerCloser(t interface {
	mock.TestingT
	Cleanup(func())
}) *ReadSeekerCloser

NewReadSeekerCloser creates a new instance of ReadSeekerCloser. 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 (*ReadSeekerCloser) Close

func (_m *ReadSeekerCloser) Close() error

Close provides a mock function with no fields

func (*ReadSeekerCloser) EXPECT

func (*ReadSeekerCloser) Read

func (_m *ReadSeekerCloser) Read(p []byte) (int, error)

Read provides a mock function with given fields: p

func (*ReadSeekerCloser) Seek

func (_m *ReadSeekerCloser) Seek(offset int64, whence int) (int64, error)

Seek provides a mock function with given fields: offset, whence

type ReadSeekerCloser_Close_Call

type ReadSeekerCloser_Close_Call struct {
	*mock.Call
}

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

func (*ReadSeekerCloser_Close_Call) Return

func (*ReadSeekerCloser_Close_Call) Run

func (*ReadSeekerCloser_Close_Call) RunAndReturn

func (_c *ReadSeekerCloser_Close_Call) RunAndReturn(run func() error) *ReadSeekerCloser_Close_Call

type ReadSeekerCloser_Expecter

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

func (*ReadSeekerCloser_Expecter) Close

Close is a helper method to define mock.On call

func (*ReadSeekerCloser_Expecter) Read

func (_e *ReadSeekerCloser_Expecter) Read(p interface{}) *ReadSeekerCloser_Read_Call

Read is a helper method to define mock.On call

  • p []byte

func (*ReadSeekerCloser_Expecter) Seek

func (_e *ReadSeekerCloser_Expecter) Seek(offset interface{}, whence interface{}) *ReadSeekerCloser_Seek_Call

Seek is a helper method to define mock.On call

  • offset int64
  • whence int

type ReadSeekerCloser_Read_Call

type ReadSeekerCloser_Read_Call struct {
	*mock.Call
}

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

func (*ReadSeekerCloser_Read_Call) Return

func (*ReadSeekerCloser_Read_Call) Run

func (*ReadSeekerCloser_Read_Call) RunAndReturn

func (_c *ReadSeekerCloser_Read_Call) RunAndReturn(run func([]byte) (int, error)) *ReadSeekerCloser_Read_Call

type ReadSeekerCloser_Seek_Call

type ReadSeekerCloser_Seek_Call struct {
	*mock.Call
}

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

func (*ReadSeekerCloser_Seek_Call) Return

func (*ReadSeekerCloser_Seek_Call) Run

func (_c *ReadSeekerCloser_Seek_Call) Run(run func(offset int64, whence int)) *ReadSeekerCloser_Seek_Call

func (*ReadSeekerCloser_Seek_Call) RunAndReturn

func (_c *ReadSeekerCloser_Seek_Call) RunAndReturn(run func(int64, int) (int64, error)) *ReadSeekerCloser_Seek_Call

type Store

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func NewStore

func NewStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *Store

NewStore creates a new instance of Store. 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 (*Store) BucketName

func (_m *Store) BucketName() string

BucketName provides a mock function with no fields

func (*Store) Copy

func (_m *Store) Copy(batch blob.CopyBatch)

Copy provides a mock function with given fields: batch

func (*Store) CopyOne

func (_m *Store) CopyOne(obj *blob.CopyObject) error

CopyOne provides a mock function with given fields: obj

func (*Store) Delete

func (_m *Store) Delete(batch blob.Batch)

Delete provides a mock function with given fields: batch

func (*Store) DeleteBucket

func (_m *Store) DeleteBucket(ctx context.Context) error

DeleteBucket provides a mock function with given fields: ctx

func (*Store) DeleteOne

func (_m *Store) DeleteOne(obj *blob.Object) error

DeleteOne provides a mock function with given fields: obj

func (*Store) DeletePrefix added in v0.47.0

func (_m *Store) DeletePrefix(ctx context.Context, prefix string) error

DeletePrefix provides a mock function with given fields: ctx, prefix

func (*Store) EXPECT

func (_m *Store) EXPECT() *Store_Expecter

func (*Store) ListObjects added in v0.47.0

func (_m *Store) ListObjects(ctx context.Context, prefix string) (blob.Batch, error)

ListObjects provides a mock function with given fields: ctx, prefix

func (*Store) Read

func (_m *Store) Read(batch blob.Batch)

Read provides a mock function with given fields: batch

func (*Store) ReadOne

func (_m *Store) ReadOne(obj *blob.Object) error

ReadOne provides a mock function with given fields: obj

func (*Store) Write

func (_m *Store) Write(batch blob.Batch) error

Write provides a mock function with given fields: batch

func (*Store) WriteOne

func (_m *Store) WriteOne(obj *blob.Object) error

WriteOne provides a mock function with given fields: obj

type Store_BucketName_Call

type Store_BucketName_Call struct {
	*mock.Call
}

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

func (*Store_BucketName_Call) Return

func (*Store_BucketName_Call) Run

func (_c *Store_BucketName_Call) Run(run func()) *Store_BucketName_Call

func (*Store_BucketName_Call) RunAndReturn

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

type Store_CopyOne_Call

type Store_CopyOne_Call struct {
	*mock.Call
}

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

func (*Store_CopyOne_Call) Return

func (_c *Store_CopyOne_Call) Return(_a0 error) *Store_CopyOne_Call

func (*Store_CopyOne_Call) Run

func (_c *Store_CopyOne_Call) Run(run func(obj *blob.CopyObject)) *Store_CopyOne_Call

func (*Store_CopyOne_Call) RunAndReturn

func (_c *Store_CopyOne_Call) RunAndReturn(run func(*blob.CopyObject) error) *Store_CopyOne_Call

type Store_Copy_Call

type Store_Copy_Call struct {
	*mock.Call
}

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

func (*Store_Copy_Call) Return

func (_c *Store_Copy_Call) Return() *Store_Copy_Call

func (*Store_Copy_Call) Run

func (_c *Store_Copy_Call) Run(run func(batch blob.CopyBatch)) *Store_Copy_Call

func (*Store_Copy_Call) RunAndReturn

func (_c *Store_Copy_Call) RunAndReturn(run func(blob.CopyBatch)) *Store_Copy_Call

type Store_DeleteBucket_Call

type Store_DeleteBucket_Call struct {
	*mock.Call
}

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

func (*Store_DeleteBucket_Call) Return

func (*Store_DeleteBucket_Call) Run

func (*Store_DeleteBucket_Call) RunAndReturn

type Store_DeleteOne_Call

type Store_DeleteOne_Call struct {
	*mock.Call
}

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

func (*Store_DeleteOne_Call) Return

func (*Store_DeleteOne_Call) Run

func (_c *Store_DeleteOne_Call) Run(run func(obj *blob.Object)) *Store_DeleteOne_Call

func (*Store_DeleteOne_Call) RunAndReturn

func (_c *Store_DeleteOne_Call) RunAndReturn(run func(*blob.Object) error) *Store_DeleteOne_Call

type Store_DeletePrefix_Call added in v0.47.0

type Store_DeletePrefix_Call struct {
	*mock.Call
}

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

func (*Store_DeletePrefix_Call) Return added in v0.47.0

func (*Store_DeletePrefix_Call) Run added in v0.47.0

func (_c *Store_DeletePrefix_Call) Run(run func(ctx context.Context, prefix string)) *Store_DeletePrefix_Call

func (*Store_DeletePrefix_Call) RunAndReturn added in v0.47.0

type Store_Delete_Call

type Store_Delete_Call struct {
	*mock.Call
}

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

func (*Store_Delete_Call) Return

func (_c *Store_Delete_Call) Return() *Store_Delete_Call

func (*Store_Delete_Call) Run

func (_c *Store_Delete_Call) Run(run func(batch blob.Batch)) *Store_Delete_Call

func (*Store_Delete_Call) RunAndReturn

func (_c *Store_Delete_Call) RunAndReturn(run func(blob.Batch)) *Store_Delete_Call

type Store_Expecter

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

func (*Store_Expecter) BucketName

func (_e *Store_Expecter) BucketName() *Store_BucketName_Call

BucketName is a helper method to define mock.On call

func (*Store_Expecter) Copy

func (_e *Store_Expecter) Copy(batch interface{}) *Store_Copy_Call

Copy is a helper method to define mock.On call

  • batch blob.CopyBatch

func (*Store_Expecter) CopyOne

func (_e *Store_Expecter) CopyOne(obj interface{}) *Store_CopyOne_Call

CopyOne is a helper method to define mock.On call

  • obj *blob.CopyObject

func (*Store_Expecter) Delete

func (_e *Store_Expecter) Delete(batch interface{}) *Store_Delete_Call

Delete is a helper method to define mock.On call

  • batch blob.Batch

func (*Store_Expecter) DeleteBucket

func (_e *Store_Expecter) DeleteBucket(ctx interface{}) *Store_DeleteBucket_Call

DeleteBucket is a helper method to define mock.On call

  • ctx context.Context

func (*Store_Expecter) DeleteOne

func (_e *Store_Expecter) DeleteOne(obj interface{}) *Store_DeleteOne_Call

DeleteOne is a helper method to define mock.On call

  • obj *blob.Object

func (*Store_Expecter) DeletePrefix added in v0.47.0

func (_e *Store_Expecter) DeletePrefix(ctx interface{}, prefix interface{}) *Store_DeletePrefix_Call

DeletePrefix is a helper method to define mock.On call

  • ctx context.Context
  • prefix string

func (*Store_Expecter) ListObjects added in v0.47.0

func (_e *Store_Expecter) ListObjects(ctx interface{}, prefix interface{}) *Store_ListObjects_Call

ListObjects is a helper method to define mock.On call

  • ctx context.Context
  • prefix string

func (*Store_Expecter) Read

func (_e *Store_Expecter) Read(batch interface{}) *Store_Read_Call

Read is a helper method to define mock.On call

  • batch blob.Batch

func (*Store_Expecter) ReadOne

func (_e *Store_Expecter) ReadOne(obj interface{}) *Store_ReadOne_Call

ReadOne is a helper method to define mock.On call

  • obj *blob.Object

func (*Store_Expecter) Write

func (_e *Store_Expecter) Write(batch interface{}) *Store_Write_Call

Write is a helper method to define mock.On call

  • batch blob.Batch

func (*Store_Expecter) WriteOne

func (_e *Store_Expecter) WriteOne(obj interface{}) *Store_WriteOne_Call

WriteOne is a helper method to define mock.On call

  • obj *blob.Object

type Store_ListObjects_Call added in v0.47.0

type Store_ListObjects_Call struct {
	*mock.Call
}

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

func (*Store_ListObjects_Call) Return added in v0.47.0

func (*Store_ListObjects_Call) Run added in v0.47.0

func (_c *Store_ListObjects_Call) Run(run func(ctx context.Context, prefix string)) *Store_ListObjects_Call

func (*Store_ListObjects_Call) RunAndReturn added in v0.47.0

type Store_ReadOne_Call

type Store_ReadOne_Call struct {
	*mock.Call
}

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

func (*Store_ReadOne_Call) Return

func (_c *Store_ReadOne_Call) Return(_a0 error) *Store_ReadOne_Call

func (*Store_ReadOne_Call) Run

func (_c *Store_ReadOne_Call) Run(run func(obj *blob.Object)) *Store_ReadOne_Call

func (*Store_ReadOne_Call) RunAndReturn

func (_c *Store_ReadOne_Call) RunAndReturn(run func(*blob.Object) error) *Store_ReadOne_Call

type Store_Read_Call

type Store_Read_Call struct {
	*mock.Call
}

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

func (*Store_Read_Call) Return

func (_c *Store_Read_Call) Return() *Store_Read_Call

func (*Store_Read_Call) Run

func (_c *Store_Read_Call) Run(run func(batch blob.Batch)) *Store_Read_Call

func (*Store_Read_Call) RunAndReturn

func (_c *Store_Read_Call) RunAndReturn(run func(blob.Batch)) *Store_Read_Call

type Store_WriteOne_Call

type Store_WriteOne_Call struct {
	*mock.Call
}

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

func (*Store_WriteOne_Call) Return

func (*Store_WriteOne_Call) Run

func (_c *Store_WriteOne_Call) Run(run func(obj *blob.Object)) *Store_WriteOne_Call

func (*Store_WriteOne_Call) RunAndReturn

func (_c *Store_WriteOne_Call) RunAndReturn(run func(*blob.Object) error) *Store_WriteOne_Call

type Store_Write_Call

type Store_Write_Call struct {
	*mock.Call
}

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

func (*Store_Write_Call) Return

func (_c *Store_Write_Call) Return(_a0 error) *Store_Write_Call

func (*Store_Write_Call) Run

func (_c *Store_Write_Call) Run(run func(batch blob.Batch)) *Store_Write_Call

func (*Store_Write_Call) RunAndReturn

func (_c *Store_Write_Call) RunAndReturn(run func(blob.Batch) error) *Store_Write_Call

type Stream

type Stream struct {
	mock.Mock
}

Stream is an autogenerated mock type for the Stream type

func NewStream

func NewStream(t interface {
	mock.TestingT
	Cleanup(func())
}) *Stream

NewStream creates a new instance of Stream. 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 (*Stream) AsReader

func (_m *Stream) AsReader() blob.ReadSeekerCloser

AsReader provides a mock function with no fields

func (*Stream) EXPECT

func (_m *Stream) EXPECT() *Stream_Expecter

func (*Stream) ReadAll

func (_m *Stream) ReadAll() ([]byte, error)

ReadAll provides a mock function with no fields

type Stream_AsReader_Call

type Stream_AsReader_Call struct {
	*mock.Call
}

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

func (*Stream_AsReader_Call) Return

func (*Stream_AsReader_Call) Run

func (_c *Stream_AsReader_Call) Run(run func()) *Stream_AsReader_Call

func (*Stream_AsReader_Call) RunAndReturn

func (_c *Stream_AsReader_Call) RunAndReturn(run func() blob.ReadSeekerCloser) *Stream_AsReader_Call

type Stream_Expecter

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

func (*Stream_Expecter) AsReader

func (_e *Stream_Expecter) AsReader() *Stream_AsReader_Call

AsReader is a helper method to define mock.On call

func (*Stream_Expecter) ReadAll

func (_e *Stream_Expecter) ReadAll() *Stream_ReadAll_Call

ReadAll is a helper method to define mock.On call

type Stream_ReadAll_Call

type Stream_ReadAll_Call struct {
	*mock.Call
}

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

func (*Stream_ReadAll_Call) Return

func (_c *Stream_ReadAll_Call) Return(_a0 []byte, _a1 error) *Stream_ReadAll_Call

func (*Stream_ReadAll_Call) Run

func (_c *Stream_ReadAll_Call) Run(run func()) *Stream_ReadAll_Call

func (*Stream_ReadAll_Call) RunAndReturn

func (_c *Stream_ReadAll_Call) RunAndReturn(run func() ([]byte, error)) *Stream_ReadAll_Call

type UrlBuilder

type UrlBuilder struct {
	mock.Mock
}

UrlBuilder is an autogenerated mock type for the UrlBuilder type

func NewUrlBuilder

func NewUrlBuilder(t interface {
	mock.TestingT
	Cleanup(func())
}) *UrlBuilder

NewUrlBuilder creates a new instance of UrlBuilder. 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 (*UrlBuilder) EXPECT

func (_m *UrlBuilder) EXPECT() *UrlBuilder_Expecter

func (*UrlBuilder) GetAbsoluteUrl

func (_m *UrlBuilder) GetAbsoluteUrl(path string) (string, error)

GetAbsoluteUrl provides a mock function with given fields: path

type UrlBuilder_Expecter

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

func (*UrlBuilder_Expecter) GetAbsoluteUrl

func (_e *UrlBuilder_Expecter) GetAbsoluteUrl(path interface{}) *UrlBuilder_GetAbsoluteUrl_Call

GetAbsoluteUrl is a helper method to define mock.On call

  • path string

type UrlBuilder_GetAbsoluteUrl_Call

type UrlBuilder_GetAbsoluteUrl_Call struct {
	*mock.Call
}

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

func (*UrlBuilder_GetAbsoluteUrl_Call) Return

func (*UrlBuilder_GetAbsoluteUrl_Call) Run

func (*UrlBuilder_GetAbsoluteUrl_Call) RunAndReturn

Jump to

Keyboard shortcuts

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