Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v2.4.7 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 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 MockFileSource

type MockFileSource struct {
	mock.Mock
}

MockFileSource is an autogenerated mock type for the FileSource type

func NewMockFileSource

func NewMockFileSource(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockFileSource

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

type MockFileSource_Expecter

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

type MockMutation

type MockMutation struct {
	mock.Mock
}

MockMutation is an autogenerated mock type for the Mutation type

func NewMockMutation

func NewMockMutation(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockMutation

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

func (_m *MockMutation) EXPECT() *MockMutation_Expecter

func (*MockMutation) ID

func (_mock *MockMutation) ID() (string, bool)

ID provides a mock function for the type MockMutation

func (*MockMutation) Type

func (_mock *MockMutation) Type() string

Type provides a mock function for the type MockMutation

type MockMutation_Expecter

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

func (*MockMutation_Expecter) ID

ID is a helper method to define mock.On call

func (*MockMutation_Expecter) Type

Type is a helper method to define mock.On call

type MockMutation_ID_Call

type MockMutation_ID_Call struct {
	*mock.Call
}

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

func (*MockMutation_ID_Call) Return

func (_c *MockMutation_ID_Call) Return(s string, exists bool) *MockMutation_ID_Call

func (*MockMutation_ID_Call) Run

func (_c *MockMutation_ID_Call) Run(run func()) *MockMutation_ID_Call

func (*MockMutation_ID_Call) RunAndReturn

func (_c *MockMutation_ID_Call) RunAndReturn(run func() (string, bool)) *MockMutation_ID_Call

type MockMutation_Type_Call

type MockMutation_Type_Call struct {
	*mock.Call
}

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

func (*MockMutation_Type_Call) Return

func (*MockMutation_Type_Call) Run

func (_c *MockMutation_Type_Call) Run(run func()) *MockMutation_Type_Call

func (*MockMutation_Type_Call) RunAndReturn

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

type MockProvider

type MockProvider struct {
	mock.Mock
}

MockProvider is an autogenerated mock type for the Provider type

func NewMockProvider

func NewMockProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockProvider

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

func (_mock *MockProvider) Close() error

Close provides a mock function for the type MockProvider

func (*MockProvider) Delete

Delete provides a mock function for the type MockProvider

func (*MockProvider) Download

Download provides a mock function for the type MockProvider

func (*MockProvider) EXPECT

func (_m *MockProvider) EXPECT() *MockProvider_Expecter

func (*MockProvider) Exists

func (_mock *MockProvider) Exists(ctx context.Context, file *storagetypes.File) (bool, error)

Exists provides a mock function for the type MockProvider

func (*MockProvider) GetPresignedURL

func (_mock *MockProvider) GetPresignedURL(ctx context.Context, file *storagetypes.File, opts *storagetypes.PresignedURLOptions) (string, error)

GetPresignedURL provides a mock function for the type MockProvider

func (*MockProvider) GetScheme

func (_mock *MockProvider) GetScheme() *string

GetScheme provides a mock function for the type MockProvider

func (*MockProvider) ListBuckets

func (_mock *MockProvider) ListBuckets() ([]string, error)

ListBuckets provides a mock function for the type MockProvider

func (*MockProvider) ProviderType

func (_mock *MockProvider) ProviderType() storagetypes.ProviderType

ProviderType provides a mock function for the type MockProvider

func (*MockProvider) Upload

Upload provides a mock function for the type MockProvider

type MockProvider_Close_Call

type MockProvider_Close_Call struct {
	*mock.Call
}

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

func (*MockProvider_Close_Call) Return

func (*MockProvider_Close_Call) Run

func (_c *MockProvider_Close_Call) Run(run func()) *MockProvider_Close_Call

func (*MockProvider_Close_Call) RunAndReturn

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

type MockProvider_Delete_Call

type MockProvider_Delete_Call struct {
	*mock.Call
}

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

func (*MockProvider_Delete_Call) Return

func (*MockProvider_Delete_Call) Run

func (*MockProvider_Delete_Call) RunAndReturn

type MockProvider_Download_Call

type MockProvider_Download_Call struct {
	*mock.Call
}

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

func (*MockProvider_Download_Call) Return

func (*MockProvider_Download_Call) Run

type MockProvider_Exists_Call

type MockProvider_Exists_Call struct {
	*mock.Call
}

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

func (*MockProvider_Exists_Call) Return

func (*MockProvider_Exists_Call) Run

func (*MockProvider_Exists_Call) RunAndReturn

func (_c *MockProvider_Exists_Call) RunAndReturn(run func(ctx context.Context, file *storagetypes.File) (bool, error)) *MockProvider_Exists_Call

type MockProvider_Expecter

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

func (*MockProvider_Expecter) Close

Close is a helper method to define mock.On call

func (*MockProvider_Expecter) Delete

func (_e *MockProvider_Expecter) Delete(ctx interface{}, file interface{}, opts interface{}) *MockProvider_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • file *storagetypes.File
  • opts *storagetypes.DeleteFileOptions

func (*MockProvider_Expecter) Download

func (_e *MockProvider_Expecter) Download(ctx interface{}, file interface{}, opts interface{}) *MockProvider_Download_Call

Download is a helper method to define mock.On call

  • ctx context.Context
  • file *storagetypes.File
  • opts *storagetypes.DownloadFileOptions

func (*MockProvider_Expecter) Exists

func (_e *MockProvider_Expecter) Exists(ctx interface{}, file interface{}) *MockProvider_Exists_Call

Exists is a helper method to define mock.On call

  • ctx context.Context
  • file *storagetypes.File

func (*MockProvider_Expecter) GetPresignedURL

func (_e *MockProvider_Expecter) GetPresignedURL(ctx interface{}, file interface{}, opts interface{}) *MockProvider_GetPresignedURL_Call

GetPresignedURL is a helper method to define mock.On call

  • ctx context.Context
  • file *storagetypes.File
  • opts *storagetypes.PresignedURLOptions

func (*MockProvider_Expecter) GetScheme

GetScheme is a helper method to define mock.On call

func (*MockProvider_Expecter) ListBuckets

ListBuckets is a helper method to define mock.On call

func (*MockProvider_Expecter) ProviderType

ProviderType is a helper method to define mock.On call

func (*MockProvider_Expecter) Upload

func (_e *MockProvider_Expecter) Upload(ctx interface{}, reader interface{}, opts interface{}) *MockProvider_Upload_Call

Upload is a helper method to define mock.On call

  • ctx context.Context
  • reader io.Reader
  • opts *storagetypes.UploadFileOptions

type MockProvider_GetPresignedURL_Call

type MockProvider_GetPresignedURL_Call struct {
	*mock.Call
}

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

func (*MockProvider_GetPresignedURL_Call) Return

func (*MockProvider_GetPresignedURL_Call) Run

func (*MockProvider_GetPresignedURL_Call) RunAndReturn

type MockProvider_GetScheme_Call

type MockProvider_GetScheme_Call struct {
	*mock.Call
}

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

func (*MockProvider_GetScheme_Call) Return

func (*MockProvider_GetScheme_Call) Run

func (*MockProvider_GetScheme_Call) RunAndReturn

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

type MockProvider_ListBuckets_Call

type MockProvider_ListBuckets_Call struct {
	*mock.Call
}

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

func (*MockProvider_ListBuckets_Call) Return

func (*MockProvider_ListBuckets_Call) Run

func (*MockProvider_ListBuckets_Call) RunAndReturn

func (_c *MockProvider_ListBuckets_Call) RunAndReturn(run func() ([]string, error)) *MockProvider_ListBuckets_Call

type MockProvider_ProviderType_Call

type MockProvider_ProviderType_Call struct {
	*mock.Call
}

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

func (*MockProvider_ProviderType_Call) Return

func (*MockProvider_ProviderType_Call) Run

func (*MockProvider_ProviderType_Call) RunAndReturn

type MockProvider_Upload_Call

type MockProvider_Upload_Call struct {
	*mock.Call
}

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

func (*MockProvider_Upload_Call) Return

func (*MockProvider_Upload_Call) Run

func (*MockProvider_Upload_Call) RunAndReturn

Jump to

Keyboard shortcuts

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