mocks

package
v0.18.2 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 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 mockConstructorTestingTNewBatchRunner) *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.

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 ReadCloser

type ReadCloser struct {
	mock.Mock
}

ReadCloser is an autogenerated mock type for the ReadCloser type

func NewReadCloser

func NewReadCloser(t mockConstructorTestingTNewReadCloser) *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.

func (*ReadCloser) Close

func (_m *ReadCloser) Close() error

Close provides a mock function with given 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 mockConstructorTestingTNewReadSeekerCloser) *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.

func (*ReadSeekerCloser) Close

func (_m *ReadSeekerCloser) Close() error

Close provides a mock function with given 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 mockConstructorTestingTNewStore) *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.

func (*Store) BucketName

func (_m *Store) BucketName() string

BucketName provides a mock function with given 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) CreateBucket

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

CreateBucket provides a mock function with given fields: ctx

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) EXPECT

func (_m *Store) EXPECT() *Store_Expecter

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_CreateBucket_Call

type Store_CreateBucket_Call struct {
	*mock.Call
}

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

func (*Store_CreateBucket_Call) Return

func (*Store_CreateBucket_Call) Run

func (*Store_CreateBucket_Call) RunAndReturn

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_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) CreateBucket

func (_e *Store_Expecter) CreateBucket(ctx interface{}) *Store_CreateBucket_Call

CreateBucket is a helper method to define mock.On call

  • ctx context.Context

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) 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_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 mockConstructorTestingTNewStream) *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.

func (*Stream) AsReader

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

AsReader provides a mock function with given 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 given 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 mockConstructorTestingTNewUrlBuilder) *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.

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