Documentation
¶
Index ¶
- type Mock
- func (m *Mock) DeleteRemoteBranch(ctx context.Context, branch string) error
- func (m *Mock) ExpectDeleteBranch(branchName string)
- func (m *Mock) ExpectEditAbort()
- func (m *Mock) ExpectEditDoneAmend()
- func (m *Mock) ExpectEditDoneAmendWithConflict()
- func (m *Mock) ExpectEditDoneConflictResolved()
- func (m *Mock) ExpectEditStart()
- func (m *Mock) ExpectFetch()
- func (m *Mock) ExpectFixup(commitHash string)
- func (m *Mock) ExpectLocalBranch(name string)
- func (m *Mock) ExpectLogAndRespond(commits []*git.Commit)
- func (m *Mock) ExpectNoFetch()
- func (m *Mock) ExpectPushCommits(commits []*git.Commit)
- func (m *Mock) ExpectRemote(remote string)
- func (m *Mock) ExpectStatus()
- func (m *Mock) ExpectationsMet()
- func (m *Mock) Git(args string, output *string) error
- func (m *Mock) GitWithEditor(args string, output *string, editorCmd string) error
- func (m *Mock) MustGit(argStr string, output *string)
- func (m *Mock) RootDir() string
- func (m *Mock) SetRootDir(dir string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mock ¶ added in v0.7.15
type Mock struct {
// contains filtered or unexported fields
}
func (*Mock) DeleteRemoteBranch ¶ added in v0.16.0
func (*Mock) ExpectDeleteBranch ¶ added in v0.15.0
func (*Mock) ExpectEditAbort ¶ added in v0.17.2
func (m *Mock) ExpectEditAbort()
ExpectEditAbort expects the rebase abort command
func (*Mock) ExpectEditDoneAmend ¶ added in v0.17.2
func (m *Mock) ExpectEditDoneAmend()
ExpectEditDoneAmend expects the amend + rebase continue sequence for a successful edit --done
func (*Mock) ExpectEditDoneAmendWithConflict ¶ added in v0.17.2
func (m *Mock) ExpectEditDoneAmendWithConflict()
ExpectEditDoneAmendWithConflict expects amend succeeds but rebase --continue fails (conflict)
func (*Mock) ExpectEditDoneConflictResolved ¶ added in v0.17.2
func (m *Mock) ExpectEditDoneConflictResolved()
ExpectEditDoneConflictResolved expects the conflict resolution path (no amend, just rebase continue)
func (*Mock) ExpectEditStart ¶ added in v0.17.2
func (m *Mock) ExpectEditStart()
ExpectEditStart expects the interactive rebase command used to start an edit session
func (*Mock) ExpectFetch ¶ added in v0.7.15
func (m *Mock) ExpectFetch()
func (*Mock) ExpectFixup ¶ added in v0.7.15
func (*Mock) ExpectLocalBranch ¶ added in v0.9.1
func (*Mock) ExpectLogAndRespond ¶ added in v0.7.15
func (*Mock) ExpectNoFetch ¶ added in v0.17.2
func (m *Mock) ExpectNoFetch()
func (*Mock) ExpectPushCommits ¶ added in v0.7.15
func (*Mock) ExpectRemote ¶ added in v0.7.15
func (*Mock) ExpectStatus ¶ added in v0.15.0
func (m *Mock) ExpectStatus()
func (*Mock) ExpectationsMet ¶ added in v0.15.0
func (m *Mock) ExpectationsMet()
func (*Mock) GitWithEditor ¶ added in v0.7.15
func (*Mock) SetRootDir ¶ added in v0.17.2
SetRootDir sets the root directory returned by RootDir()
Click to show internal directories.
Click to hide internal directories.