testing

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2015 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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) GetCommit

func (r MockRepository) GetCommit(id vcs.CommitID) (*vcs.Commit, error)

func (MockRepository) MergeBase

func (r MockRepository) MergeBase(a, b vcs.CommitID) (vcs.CommitID, 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)

func (MockRepository) Tags

func (r MockRepository) Tags() ([]*vcs.Tag, error)

Jump to

Keyboard shortcuts

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