Documentation ¶
Index ¶
- type GitilesRepo
- func (_m *GitilesRepo) Branches(ctx context.Context) ([]*git.Branch, error)
- func (_m *GitilesRepo) Details(ctx context.Context, ref string) (*vcsinfo.LongCommit, error)
- func (_m *GitilesRepo) DownloadFile(ctx context.Context, srcPath string, dstPath string) error
- func (_m *GitilesRepo) DownloadFileAtRef(ctx context.Context, srcPath string, ref string, dstPath string) error
- func (_m *GitilesRepo) ListDir(ctx context.Context, dir string) ([]fs.FileInfo, error)
- func (_m *GitilesRepo) ListDirAtRef(ctx context.Context, dir string, ref string) ([]fs.FileInfo, error)
- func (_m *GitilesRepo) ListFilesRecursive(ctx context.Context, dir string) ([]string, error)
- func (_m *GitilesRepo) ListFilesRecursiveAtRef(ctx context.Context, topDir string, ref string) ([]string, error)
- func (_m *GitilesRepo) Log(ctx context.Context, logExpr string, opts ...gitiles.LogOption) ([]*vcsinfo.LongCommit, error)
- func (_m *GitilesRepo) LogFirstParent(ctx context.Context, from string, to string, opts ...gitiles.LogOption) ([]*vcsinfo.LongCommit, error)
- func (_m *GitilesRepo) LogFn(ctx context.Context, logExpr string, ...) error
- func (_m *GitilesRepo) LogFnBatch(ctx context.Context, logExpr string, ...) error
- func (_m *GitilesRepo) LogLinear(ctx context.Context, from string, to string, opts ...gitiles.LogOption) ([]*vcsinfo.LongCommit, error)
- func (_m *GitilesRepo) ReadFile(ctx context.Context, srcPath string) ([]byte, error)
- func (_m *GitilesRepo) ReadFileAtRef(ctx context.Context, srcPath string, ref string) ([]byte, error)
- func (_m *GitilesRepo) ReadObject(ctx context.Context, path string, ref string) (fs.FileInfo, []byte, error)
- func (_m *GitilesRepo) ResolveRef(ctx context.Context, ref string) (string, error)
- func (_m *GitilesRepo) Tags(ctx context.Context) (map[string]string, error)
- func (_m *GitilesRepo) URL() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitilesRepo ¶
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) 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 ¶
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) 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 ¶
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) 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 ¶
ResolveRef provides a mock function with given fields: ctx, ref
func (*GitilesRepo) URL ¶
func (_m *GitilesRepo) URL() string
URL provides a mock function with given fields: