Documentation
¶
Index ¶
- type FakeGit
- func (f *FakeGit) AssertCalledWith(t *testing.T, expected [][]string)
- func (f *FakeGit) Checkout(output io.Writer, workingDir string, branch string) error
- func (f *FakeGit) Commit(output io.Writer, workingDir string, message string) error
- func (f *FakeGit) IsRepoChanged(output io.Writer, workingDir string) (bool, error)
- func (f *FakeGit) Pull(output io.Writer, workingDir string, remote string, branchName string) error
- func (f *FakeGit) Push(output io.Writer, workingDir string, _ string, branchName string) error
- type Git
- type RealGit
- func (r *RealGit) Checkout(output io.Writer, workingDir string, branchName string) error
- func (r *RealGit) Commit(output io.Writer, workingDir string, message string) error
- func (r *RealGit) IsRepoChanged(output io.Writer, workingDir string) (bool, error)
- func (r *RealGit) Pull(output io.Writer, workingDir string, remote string, branchName string) error
- func (r *RealGit) Push(output io.Writer, workingDir string, remote string, branchName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeGit ¶
type FakeGit struct {
// contains filtered or unexported fields
}
func NewAlwaysFailsFakeGit ¶
func NewAlwaysFailsFakeGit() *FakeGit
func NewAlwaysFailsOnPullFakeGit ¶
func NewAlwaysFailsOnPullFakeGit() *FakeGit
func NewAlwaysSucceedsFakeGit ¶
func NewAlwaysSucceedsFakeGit() *FakeGit
func (*FakeGit) AssertCalledWith ¶
func (*FakeGit) IsRepoChanged ¶
type Git ¶
type Git interface {
Checkout(output io.Writer, workingDir string, branch string) error
Push(stdout io.Writer, workingDir string, remote string, branchName string) error
Commit(output io.Writer, workingDir string, message string) error
IsRepoChanged(output io.Writer, workingDir string) (bool, error)
Pull(output io.Writer, workingDir string, remote string, branchName string) error
}
Click to show internal directories.
Click to hide internal directories.