mockgit

package
v0.14.9 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 NewMockGit

func NewMockGit(t *testing.T) *Mock

NewMockGit creates and new mock git instance

func (*Mock) ExpectFetch added in v0.7.15

func (m *Mock) ExpectFetch()

func (*Mock) ExpectFixup added in v0.7.15

func (m *Mock) ExpectFixup(commitHash string)

func (*Mock) ExpectLocalBranch added in v0.9.1

func (m *Mock) ExpectLocalBranch(name string)

func (*Mock) ExpectLogAndRespond added in v0.7.15

func (m *Mock) ExpectLogAndRespond(commits []*git.Commit)

func (*Mock) ExpectPushCommits added in v0.7.15

func (m *Mock) ExpectPushCommits(commits []*git.Commit)

func (*Mock) ExpectRemote added in v0.7.15

func (m *Mock) ExpectRemote(remote string)

func (*Mock) Git added in v0.7.15

func (m *Mock) Git(args string, output *string) error

func (*Mock) GitWithEditor added in v0.7.15

func (m *Mock) GitWithEditor(args string, output *string, editorCmd string) error

func (*Mock) MustGit added in v0.12.1

func (m *Mock) MustGit(argStr string, output *string)

func (*Mock) RootDir added in v0.7.15

func (m *Mock) RootDir() string

Jump to

Keyboard shortcuts

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