Documentation
¶
Index ¶
- type GitInterface
- func (_m *GitInterface) BranchName(issueID int) string
- func (_m *GitInterface) CheckoutBranch(name string) error
- func (_m *GitInterface) DeleteBranch(_a0 string) error
- func (_m *GitInterface) ExecCheckoutBranch(name string) error
- func (_m *GitInterface) GetAffectedFiles(sha string) ([]string, error)
- func (_m *GitInterface) GetLastCommitHash() (string, error)
- func (_m *GitInterface) GetLastCommits(count int) ([]string, error)
- func (_m *GitInterface) GetPath() string
- func (_m *GitInterface) Reload()
- func (_m *GitInterface) SetPath(path string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitInterface ¶
GitInterface is an autogenerated mock type for the GitInterface type
func NewGitInterface ¶
func NewGitInterface(t interface {
mock.TestingT
Cleanup(func())
}) *GitInterface
NewGitInterface creates a new instance of GitInterface. 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 (*GitInterface) BranchName ¶
func (_m *GitInterface) BranchName(issueID int) string
BranchName provides a mock function with given fields: issueID
func (*GitInterface) CheckoutBranch ¶
func (_m *GitInterface) CheckoutBranch(name string) error
CheckoutBranch provides a mock function with given fields: name
func (*GitInterface) DeleteBranch ¶
func (_m *GitInterface) DeleteBranch(_a0 string) error
DeleteBranch provides a mock function with given fields: _a0
func (*GitInterface) ExecCheckoutBranch ¶ added in v0.9.1
func (_m *GitInterface) ExecCheckoutBranch(name string) error
ExecCheckoutBranch provides a mock function with given fields: name
func (*GitInterface) GetAffectedFiles ¶
func (_m *GitInterface) GetAffectedFiles(sha string) ([]string, error)
GetAffectedFiles provides a mock function with given fields: sha
func (*GitInterface) GetLastCommitHash ¶
func (_m *GitInterface) GetLastCommitHash() (string, error)
GetLastCommitHash provides a mock function with no fields
func (*GitInterface) GetLastCommits ¶
func (_m *GitInterface) GetLastCommits(count int) ([]string, error)
GetLastCommits provides a mock function with given fields: count
func (*GitInterface) GetPath ¶
func (_m *GitInterface) GetPath() string
GetPath provides a mock function with no fields
func (*GitInterface) Reload ¶
func (_m *GitInterface) Reload()
Reload provides a mock function with no fields
func (*GitInterface) SetPath ¶
func (_m *GitInterface) SetPath(path string)
SetPath provides a mock function with given fields: path