mocks

package
v1.66.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBlobClient

type MockBlobClient struct {
	mock.Mock
}

MockBlobClient is an autogenerated mock type for the BlobClient type

func NewMockBlobClient

func NewMockBlobClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockBlobClient

NewMockBlobClient creates a new instance of MockBlobClient. 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 (*MockBlobClient) DeleteBlob

func (_m *MockBlobClient) DeleteBlob(ctx context.Context, container string, blobPath string) error

DeleteBlob provides a mock function with given fields: ctx, container, blobPath

func (*MockBlobClient) DownloadBlob

func (_m *MockBlobClient) DownloadBlob(ctx context.Context, container string, blobPath string, buf []byte) (int64, error)

DownloadBlob provides a mock function with given fields: ctx, container, blobPath, buf

func (*MockBlobClient) EXPECT

func (*MockBlobClient) ListBlobs

func (_m *MockBlobClient) ListBlobs(ctx context.Context, container string, prefix *string, marker *string) ([]*azureblob.BlobInfo, *string, error)

ListBlobs provides a mock function with given fields: ctx, container, prefix, marker

type MockBlobClient_DeleteBlob_Call

type MockBlobClient_DeleteBlob_Call struct {
	*mock.Call
}

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

func (*MockBlobClient_DeleteBlob_Call) Return

func (*MockBlobClient_DeleteBlob_Call) Run

func (_c *MockBlobClient_DeleteBlob_Call) Run(run func(ctx context.Context, container string, blobPath string)) *MockBlobClient_DeleteBlob_Call

func (*MockBlobClient_DeleteBlob_Call) RunAndReturn

type MockBlobClient_DownloadBlob_Call

type MockBlobClient_DownloadBlob_Call struct {
	*mock.Call
}

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

func (*MockBlobClient_DownloadBlob_Call) Return

func (*MockBlobClient_DownloadBlob_Call) Run

func (_c *MockBlobClient_DownloadBlob_Call) Run(run func(ctx context.Context, container string, blobPath string, buf []byte)) *MockBlobClient_DownloadBlob_Call

func (*MockBlobClient_DownloadBlob_Call) RunAndReturn

type MockBlobClient_Expecter

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

func (*MockBlobClient_Expecter) DeleteBlob

func (_e *MockBlobClient_Expecter) DeleteBlob(ctx interface{}, container interface{}, blobPath interface{}) *MockBlobClient_DeleteBlob_Call

DeleteBlob is a helper method to define mock.On call

  • ctx context.Context
  • container string
  • blobPath string

func (*MockBlobClient_Expecter) DownloadBlob

func (_e *MockBlobClient_Expecter) DownloadBlob(ctx interface{}, container interface{}, blobPath interface{}, buf interface{}) *MockBlobClient_DownloadBlob_Call

DownloadBlob is a helper method to define mock.On call

  • ctx context.Context
  • container string
  • blobPath string
  • buf []byte

func (*MockBlobClient_Expecter) ListBlobs

func (_e *MockBlobClient_Expecter) ListBlobs(ctx interface{}, container interface{}, prefix interface{}, marker interface{}) *MockBlobClient_ListBlobs_Call

ListBlobs is a helper method to define mock.On call

  • ctx context.Context
  • container string
  • prefix *string
  • marker *string

type MockBlobClient_ListBlobs_Call

type MockBlobClient_ListBlobs_Call struct {
	*mock.Call
}

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

func (*MockBlobClient_ListBlobs_Call) Return

func (*MockBlobClient_ListBlobs_Call) Run

func (_c *MockBlobClient_ListBlobs_Call) Run(run func(ctx context.Context, container string, prefix *string, marker *string)) *MockBlobClient_ListBlobs_Call

func (*MockBlobClient_ListBlobs_Call) RunAndReturn

Jump to

Keyboard shortcuts

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