mocks

package
v0.0.0-...-bc12874 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitilesRepo

type GitilesRepo struct {
	mock.Mock
}

GitilesRepo is an autogenerated mock type for the GitilesRepo type

func NewGitilesRepo

func NewGitilesRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *GitilesRepo

NewGitilesRepo creates a new instance of GitilesRepo. 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 (*GitilesRepo) Branches

func (_m *GitilesRepo) Branches(ctx context.Context) ([]*git.Branch, error)

Branches provides a mock function with given fields: ctx

func (*GitilesRepo) Details

func (_m *GitilesRepo) Details(ctx context.Context, ref string) (*vcsinfo.LongCommit, error)

Details provides a mock function with given fields: ctx, ref

func (*GitilesRepo) DownloadFile

func (_m *GitilesRepo) DownloadFile(ctx context.Context, srcPath string, dstPath string) error

DownloadFile provides a mock function with given fields: ctx, srcPath, dstPath

func (*GitilesRepo) DownloadFileAtRef

func (_m *GitilesRepo) DownloadFileAtRef(ctx context.Context, srcPath string, ref string, dstPath string) error

DownloadFileAtRef provides a mock function with given fields: ctx, srcPath, ref, dstPath

func (*GitilesRepo) ListDir

func (_m *GitilesRepo) ListDir(ctx context.Context, dir string) ([]fs.FileInfo, error)

ListDir provides a mock function with given fields: ctx, dir

func (*GitilesRepo) ListDirAtRef

func (_m *GitilesRepo) ListDirAtRef(ctx context.Context, dir string, ref string) ([]fs.FileInfo, error)

ListDirAtRef provides a mock function with given fields: ctx, dir, ref

func (*GitilesRepo) ListFilesRecursive

func (_m *GitilesRepo) ListFilesRecursive(ctx context.Context, dir string) ([]string, error)

ListFilesRecursive provides a mock function with given fields: ctx, dir

func (*GitilesRepo) ListFilesRecursiveAtRef

func (_m *GitilesRepo) ListFilesRecursiveAtRef(ctx context.Context, topDir string, ref string) ([]string, error)

ListFilesRecursiveAtRef provides a mock function with given fields: ctx, topDir, ref

func (*GitilesRepo) Log

func (_m *GitilesRepo) Log(ctx context.Context, logExpr string, opts ...gitiles.LogOption) ([]*vcsinfo.LongCommit, error)

Log provides a mock function with given fields: ctx, logExpr, opts

func (*GitilesRepo) LogFirstParent

func (_m *GitilesRepo) LogFirstParent(ctx context.Context, from string, to string, opts ...gitiles.LogOption) ([]*vcsinfo.LongCommit, error)

LogFirstParent provides a mock function with given fields: ctx, from, to, opts

func (*GitilesRepo) LogFn

func (_m *GitilesRepo) LogFn(ctx context.Context, logExpr string, fn func(context.Context, *vcsinfo.LongCommit) error, opts ...gitiles.LogOption) error

LogFn provides a mock function with given fields: ctx, logExpr, fn, opts

func (*GitilesRepo) LogFnBatch

func (_m *GitilesRepo) LogFnBatch(ctx context.Context, logExpr string, fn func(context.Context, []*vcsinfo.LongCommit) error, opts ...gitiles.LogOption) error

LogFnBatch provides a mock function with given fields: ctx, logExpr, fn, opts

func (*GitilesRepo) LogLinear

func (_m *GitilesRepo) LogLinear(ctx context.Context, from string, to string, opts ...gitiles.LogOption) ([]*vcsinfo.LongCommit, error)

LogLinear provides a mock function with given fields: ctx, from, to, opts

func (*GitilesRepo) ReadFile

func (_m *GitilesRepo) ReadFile(ctx context.Context, srcPath string) ([]byte, error)

ReadFile provides a mock function with given fields: ctx, srcPath

func (*GitilesRepo) ReadFileAtRef

func (_m *GitilesRepo) ReadFileAtRef(ctx context.Context, srcPath string, ref string) ([]byte, error)

ReadFileAtRef provides a mock function with given fields: ctx, srcPath, ref

func (*GitilesRepo) ReadObject

func (_m *GitilesRepo) ReadObject(ctx context.Context, path string, ref string) (fs.FileInfo, []byte, error)

ReadObject provides a mock function with given fields: ctx, path, ref

func (*GitilesRepo) ResolveRef

func (_m *GitilesRepo) ResolveRef(ctx context.Context, ref string) (string, error)

ResolveRef provides a mock function with given fields: ctx, ref

func (*GitilesRepo) Tags

func (_m *GitilesRepo) Tags(ctx context.Context) (map[string]string, error)

Tags provides a mock function with given fields: ctx

func (*GitilesRepo) URL

func (_m *GitilesRepo) URL() string

URL provides a mock function with given fields:

Jump to

Keyboard shortcuts

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