Documentation ¶
Index ¶
- type MockRepository
- func (r MockRepository) BlameFile(path string, opt *vcs.BlameOptions) ([]*vcs.Hunk, error)
- func (r MockRepository) Branches(opt vcs.BranchesOptions) ([]*vcs.Branch, error)
- func (r MockRepository) Commits(opt vcs.CommitsOptions) ([]*vcs.Commit, uint, error)
- func (r MockRepository) CrossRepoDiff(base vcs.CommitID, headRepo vcs.Repository, head vcs.CommitID, ...) (*vcs.Diff, error)
- func (r MockRepository) CrossRepoMergeBase(a vcs.CommitID, repoB vcs.Repository, b vcs.CommitID) (vcs.CommitID, error)
- func (r MockRepository) Diff(base, head vcs.CommitID, opt *vcs.DiffOptions) (*vcs.Diff, error)
- func (r MockRepository) FileSystem(at vcs.CommitID) (vfs.FileSystem, error)
- func (r MockRepository) GetCommit(id vcs.CommitID) (*vcs.Commit, error)
- func (r MockRepository) MergeBase(a, b vcs.CommitID) (vcs.CommitID, error)
- func (r MockRepository) ResolveBranch(name string) (vcs.CommitID, error)
- func (r MockRepository) ResolveRevision(spec string) (vcs.CommitID, error)
- func (r MockRepository) ResolveTag(name string) (vcs.CommitID, error)
- func (r MockRepository) Tags() ([]*vcs.Tag, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRepository ¶
type MockRepository struct { ResolveRevision_ func(spec string) (vcs.CommitID, error) ResolveTag_ func(name string) (vcs.CommitID, error) ResolveBranch_ func(name string) (vcs.CommitID, error) Branches_ func(vcs.BranchesOptions) ([]*vcs.Branch, error) Tags_ func() ([]*vcs.Tag, error) GetCommit_ func(vcs.CommitID) (*vcs.Commit, error) Commits_ func(vcs.CommitsOptions) ([]*vcs.Commit, uint, error) BlameFile_ func(path string, opt *vcs.BlameOptions) ([]*vcs.Hunk, error) FileSystem_ func(at vcs.CommitID) (vfs.FileSystem, error) Diff_ func(base, head vcs.CommitID, opt *vcs.DiffOptions) (*vcs.Diff, error) CrossRepoDiff_ func(base vcs.CommitID, headRepo vcs.Repository, head vcs.CommitID, opt *vcs.DiffOptions) (*vcs.Diff, error) MergeBase_ func(a, b vcs.CommitID) (vcs.CommitID, error) CrossRepoMergeBase_ func(a vcs.CommitID, repoB vcs.Repository, b vcs.CommitID) (vcs.CommitID, error) }
func (MockRepository) BlameFile ¶
func (r MockRepository) BlameFile(path string, opt *vcs.BlameOptions) ([]*vcs.Hunk, error)
func (MockRepository) Branches ¶
func (r MockRepository) Branches(opt vcs.BranchesOptions) ([]*vcs.Branch, error)
func (MockRepository) Commits ¶
func (r MockRepository) Commits(opt vcs.CommitsOptions) ([]*vcs.Commit, uint, error)
func (MockRepository) CrossRepoDiff ¶
func (r MockRepository) CrossRepoDiff(base vcs.CommitID, headRepo vcs.Repository, head vcs.CommitID, opt *vcs.DiffOptions) (*vcs.Diff, error)
func (MockRepository) CrossRepoMergeBase ¶
func (r MockRepository) CrossRepoMergeBase(a vcs.CommitID, repoB vcs.Repository, b vcs.CommitID) (vcs.CommitID, error)
func (MockRepository) Diff ¶
func (r MockRepository) Diff(base, head vcs.CommitID, opt *vcs.DiffOptions) (*vcs.Diff, error)
func (MockRepository) FileSystem ¶
func (r MockRepository) FileSystem(at vcs.CommitID) (vfs.FileSystem, error)
func (MockRepository) ResolveBranch ¶
func (r MockRepository) ResolveBranch(name string) (vcs.CommitID, error)
func (MockRepository) ResolveRevision ¶
func (r MockRepository) ResolveRevision(spec string) (vcs.CommitID, error)
func (MockRepository) ResolveTag ¶
func (r MockRepository) ResolveTag(name string) (vcs.CommitID, error)
Click to show internal directories.
Click to hide internal directories.