mocks

package
v0.0.0-...-34553e7 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RBEClient

type RBEClient struct {
	mock.Mock
}

RBEClient is an autogenerated mock type for the RBEClient type

func NewRBEClient

func NewRBEClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *RBEClient

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

func (_m *RBEClient) Close() error

Close provides a mock function with given fields:

func (*RBEClient) ComputeMerkleTree

func (_m *RBEClient) ComputeMerkleTree(ctx context.Context, execRoot string, workingDir string, remoteWorkingDir string, is *command.InputSpec, cache filemetadata.Cache) (digest.Digest, []*uploadinfo.Entry, *client.TreeStats, error)

ComputeMerkleTree provides a mock function with given fields: ctx, execRoot, workingDir, remoteWorkingDir, is, cache

func (*RBEClient) DownloadDirectory

func (_m *RBEClient) DownloadDirectory(ctx context.Context, d digest.Digest, execRoot string, cache filemetadata.Cache) (map[string]*client.TreeOutput, *client.MovedBytesMetadata, error)

DownloadDirectory provides a mock function with given fields: ctx, d, execRoot, cache

func (*RBEClient) GetDirectoryTree

func (_m *RBEClient) GetDirectoryTree(ctx context.Context, d *remoteexecution.Digest) ([]*remoteexecution.Directory, error)

GetDirectoryTree provides a mock function with given fields: ctx, d

func (*RBEClient) UploadIfMissing

func (_m *RBEClient) UploadIfMissing(ctx context.Context, data ...*uploadinfo.Entry) ([]digest.Digest, int64, error)

UploadIfMissing provides a mock function with given fields: ctx, data

Jump to

Keyboard shortcuts

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