git_mocks

package
v0.0.0-...-733b0cc Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitRepoMock

type GitRepoMock struct {
	mock.Mock
}

GitRepoMock is an autogenerated mock type for the Repo type

func NewGitRepoMock

func NewGitRepoMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *GitRepoMock

NewGitRepoMock creates a new instance of GitRepoMock. 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 (*GitRepoMock) AddFileToGit

func (_m *GitRepoMock) AddFileToGit(filePath string) error

AddFileToGit provides a mock function with given fields: filePath

func (*GitRepoMock) AddFileToIgnore

func (_m *GitRepoMock) AddFileToIgnore(filePath string) error

AddFileToIgnore provides a mock function with given fields: filePath

func (*GitRepoMock) Branch

func (_m *GitRepoMock) Branch() (string, error)

Branch provides a mock function with no fields

func (*GitRepoMock) Commit

func (_m *GitRepoMock) Commit(msg string, opts git.CommitOpts) error

Commit provides a mock function with given fields: msg, opts

func (*GitRepoMock) CopyFile

func (_m *GitRepoMock) CopyFile(fromPath string, toPath string) error

CopyFile provides a mock function with given fields: fromPath, toPath

func (*GitRepoMock) CreateDir

func (_m *GitRepoMock) CreateDir(filePath string) (billy.Dir, error)

CreateDir provides a mock function with given fields: filePath

func (*GitRepoMock) CreateFile

func (_m *GitRepoMock) CreateFile(filePath string) (billy.File, error)

CreateFile provides a mock function with given fields: filePath

func (*GitRepoMock) Exists

func (_m *GitRepoMock) Exists(filePath string) bool

Exists provides a mock function with given fields: filePath

func (*GitRepoMock) Gitdir

func (_m *GitRepoMock) Gitdir() string

Gitdir provides a mock function with no fields

func (*GitRepoMock) Hash

func (_m *GitRepoMock) Hash() (string, error)

Hash provides a mock function with no fields

func (*GitRepoMock) Init

func (_m *GitRepoMock) Init(wd string, opts ...git.Option) error

Init provides a mock function with given fields: wd, opts

func (*GitRepoMock) InitOrOpen

func (_m *GitRepoMock) InitOrOpen(wd string, opts ...git.Option) error

InitOrOpen provides a mock function with given fields: wd, opts

func (*GitRepoMock) Log

func (_m *GitRepoMock) Log() []git.Commit

Log provides a mock function with no fields

func (*GitRepoMock) Open

func (_m *GitRepoMock) Open(wd string, opts ...git.Option) error

Open provides a mock function with given fields: wd, opts

func (*GitRepoMock) OpenFile

func (_m *GitRepoMock) OpenFile(filePath string, flag int, perm fs.FileMode) (billy.File, error)

OpenFile provides a mock function with given fields: filePath, flag, perm

func (*GitRepoMock) RemoveFileFromIgnore

func (_m *GitRepoMock) RemoveFileFromIgnore(filePath string) error

RemoveFileFromIgnore provides a mock function with given fields: filePath

func (*GitRepoMock) Workdir

func (_m *GitRepoMock) Workdir() string

Workdir provides a mock function with no fields

Jump to

Keyboard shortcuts

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