repo

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRepoLike

type MockRepoLike struct {
	mock.Mock
}

MockRepoLike is an autogenerated mock type for the RepoLike type

func NewMockRepoLike

func NewMockRepoLike(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockRepoLike

NewMockRepoLike creates a new instance of MockRepoLike. 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 (*MockRepoLike) AddToFS

func (_mock *MockRepoLike) AddToFS(fs afero.Fs, gitFile *object.File, fullPath string) error

AddToFS provides a mock function for the type MockRepoLike

func (*MockRepoLike) Checkout

func (_mock *MockRepoLike) Checkout(referenceName plumbing.ReferenceName) error

Checkout provides a mock function for the type MockRepoLike

func (*MockRepoLike) CheckoutCommit

func (_mock *MockRepoLike) CheckoutCommit(hash plumbing.Hash) error

CheckoutCommit provides a mock function for the type MockRepoLike

func (*MockRepoLike) Clone

func (_mock *MockRepoLike) Clone(s string, s1 string, cloneOptions ...repo.CloneOption) (*git.Repository, *git.Worktree, error)

Clone provides a mock function for the type MockRepoLike

func (*MockRepoLike) Commit

func (_mock *MockRepoLike) Commit(s string, commitOptions *git.CommitOptions) (plumbing.Hash, error)

Commit provides a mock function for the type MockRepoLike

func (*MockRepoLike) CreateBranch

func (_mock *MockRepoLike) CreateBranch(s string) error

CreateBranch provides a mock function for the type MockRepoLike

func (*MockRepoLike) DirectoryExists

func (_mock *MockRepoLike) DirectoryExists(s string) (bool, error)

DirectoryExists provides a mock function for the type MockRepoLike

func (*MockRepoLike) EXPECT

func (_m *MockRepoLike) EXPECT() *MockRepoLike_Expecter

func (*MockRepoLike) FileExists

func (_mock *MockRepoLike) FileExists(s string) (bool, error)

FileExists provides a mock function for the type MockRepoLike

func (*MockRepoLike) GetAuth

func (_mock *MockRepoLike) GetAuth() transport.AuthMethod

GetAuth provides a mock function for the type MockRepoLike

func (*MockRepoLike) GetFile

func (_mock *MockRepoLike) GetFile(s string) (*object.File, error)

GetFile provides a mock function for the type MockRepoLike

func (*MockRepoLike) GetRepo

func (_mock *MockRepoLike) GetRepo() *git.Repository

GetRepo provides a mock function for the type MockRepoLike

func (*MockRepoLike) GetTree

func (_mock *MockRepoLike) GetTree() *git.Worktree

GetTree provides a mock function for the type MockRepoLike

func (*MockRepoLike) Open

func (_mock *MockRepoLike) Open(v repo.RepoType, s string, s1 string, cloneOptions ...repo.CloneOption) (*git.Repository, *git.Worktree, error)

Open provides a mock function for the type MockRepoLike

func (*MockRepoLike) OpenInMemory

func (_mock *MockRepoLike) OpenInMemory(s string, s1 string, cloneOptions ...repo.CloneOption) (*git.Repository, *git.Worktree, error)

OpenInMemory provides a mock function for the type MockRepoLike

func (*MockRepoLike) OpenLocal

func (_mock *MockRepoLike) OpenLocal(s string, s1 string) (*git.Repository, *git.Worktree, error)

OpenLocal provides a mock function for the type MockRepoLike

func (*MockRepoLike) Push

func (_mock *MockRepoLike) Push(pushOptions *git.PushOptions) error

Push provides a mock function for the type MockRepoLike

func (*MockRepoLike) SetBasicAuth

func (_mock *MockRepoLike) SetBasicAuth(s string, s1 string)

SetBasicAuth provides a mock function for the type MockRepoLike

func (*MockRepoLike) SetKey

func (_mock *MockRepoLike) SetKey(publicKeys *ssh.PublicKeys)

SetKey provides a mock function for the type MockRepoLike

func (*MockRepoLike) SetRepo

func (_mock *MockRepoLike) SetRepo(repository *git.Repository)

SetRepo provides a mock function for the type MockRepoLike

func (*MockRepoLike) SetSource

func (_mock *MockRepoLike) SetSource(n int)

SetSource provides a mock function for the type MockRepoLike

func (*MockRepoLike) SetTree

func (_mock *MockRepoLike) SetTree(worktree *git.Worktree)

SetTree provides a mock function for the type MockRepoLike

func (*MockRepoLike) SourceIs

func (_mock *MockRepoLike) SourceIs(n int) bool

SourceIs provides a mock function for the type MockRepoLike

func (*MockRepoLike) WalkTree

func (_mock *MockRepoLike) WalkTree(fn func(*object.File) error) error

WalkTree provides a mock function for the type MockRepoLike

type MockRepoLike_AddToFS_Call

type MockRepoLike_AddToFS_Call struct {
	*mock.Call
}

MockRepoLike_AddToFS_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddToFS'

func (*MockRepoLike_AddToFS_Call) Return

func (*MockRepoLike_AddToFS_Call) Run

func (_c *MockRepoLike_AddToFS_Call) Run(run func(fs afero.Fs, gitFile *object.File, fullPath string)) *MockRepoLike_AddToFS_Call

func (*MockRepoLike_AddToFS_Call) RunAndReturn

func (_c *MockRepoLike_AddToFS_Call) RunAndReturn(run func(fs afero.Fs, gitFile *object.File, fullPath string) error) *MockRepoLike_AddToFS_Call

type MockRepoLike_CheckoutCommit_Call

type MockRepoLike_CheckoutCommit_Call struct {
	*mock.Call
}

MockRepoLike_CheckoutCommit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckoutCommit'

func (*MockRepoLike_CheckoutCommit_Call) Return

func (*MockRepoLike_CheckoutCommit_Call) Run

func (*MockRepoLike_CheckoutCommit_Call) RunAndReturn

type MockRepoLike_Checkout_Call

type MockRepoLike_Checkout_Call struct {
	*mock.Call
}

MockRepoLike_Checkout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Checkout'

func (*MockRepoLike_Checkout_Call) Return

func (*MockRepoLike_Checkout_Call) Run

func (*MockRepoLike_Checkout_Call) RunAndReturn

func (_c *MockRepoLike_Checkout_Call) RunAndReturn(run func(referenceName plumbing.ReferenceName) error) *MockRepoLike_Checkout_Call

type MockRepoLike_Clone_Call

type MockRepoLike_Clone_Call struct {
	*mock.Call
}

MockRepoLike_Clone_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Clone'

func (*MockRepoLike_Clone_Call) Return

func (_c *MockRepoLike_Clone_Call) Return(repository *git.Repository, worktree *git.Worktree, err error) *MockRepoLike_Clone_Call

func (*MockRepoLike_Clone_Call) Run

func (_c *MockRepoLike_Clone_Call) Run(run func(s string, s1 string, cloneOptions ...repo.CloneOption)) *MockRepoLike_Clone_Call

func (*MockRepoLike_Clone_Call) RunAndReturn

func (_c *MockRepoLike_Clone_Call) RunAndReturn(run func(s string, s1 string, cloneOptions ...repo.CloneOption) (*git.Repository, *git.Worktree, error)) *MockRepoLike_Clone_Call

type MockRepoLike_Commit_Call

type MockRepoLike_Commit_Call struct {
	*mock.Call
}

MockRepoLike_Commit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Commit'

func (*MockRepoLike_Commit_Call) Return

func (*MockRepoLike_Commit_Call) Run

func (_c *MockRepoLike_Commit_Call) Run(run func(s string, commitOptions *git.CommitOptions)) *MockRepoLike_Commit_Call

func (*MockRepoLike_Commit_Call) RunAndReturn

func (_c *MockRepoLike_Commit_Call) RunAndReturn(run func(s string, commitOptions *git.CommitOptions) (plumbing.Hash, error)) *MockRepoLike_Commit_Call

type MockRepoLike_CreateBranch_Call

type MockRepoLike_CreateBranch_Call struct {
	*mock.Call
}

MockRepoLike_CreateBranch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateBranch'

func (*MockRepoLike_CreateBranch_Call) Return

func (*MockRepoLike_CreateBranch_Call) Run

func (*MockRepoLike_CreateBranch_Call) RunAndReturn

type MockRepoLike_DirectoryExists_Call

type MockRepoLike_DirectoryExists_Call struct {
	*mock.Call
}

MockRepoLike_DirectoryExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DirectoryExists'

func (*MockRepoLike_DirectoryExists_Call) Return

func (*MockRepoLike_DirectoryExists_Call) Run

func (*MockRepoLike_DirectoryExists_Call) RunAndReturn

type MockRepoLike_Expecter

type MockRepoLike_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockRepoLike_Expecter) AddToFS

func (_e *MockRepoLike_Expecter) AddToFS(fs interface{}, gitFile interface{}, fullPath interface{}) *MockRepoLike_AddToFS_Call

AddToFS is a helper method to define mock.On call

  • fs afero.Fs
  • gitFile *object.File
  • fullPath string

func (*MockRepoLike_Expecter) Checkout

func (_e *MockRepoLike_Expecter) Checkout(referenceName interface{}) *MockRepoLike_Checkout_Call

Checkout is a helper method to define mock.On call

  • referenceName plumbing.ReferenceName

func (*MockRepoLike_Expecter) CheckoutCommit

func (_e *MockRepoLike_Expecter) CheckoutCommit(hash interface{}) *MockRepoLike_CheckoutCommit_Call

CheckoutCommit is a helper method to define mock.On call

  • hash plumbing.Hash

func (*MockRepoLike_Expecter) Clone

func (_e *MockRepoLike_Expecter) Clone(s interface{}, s1 interface{}, cloneOptions ...interface{}) *MockRepoLike_Clone_Call

Clone is a helper method to define mock.On call

  • s string
  • s1 string
  • cloneOptions ...repo.CloneOption

func (*MockRepoLike_Expecter) Commit

func (_e *MockRepoLike_Expecter) Commit(s interface{}, commitOptions interface{}) *MockRepoLike_Commit_Call

Commit is a helper method to define mock.On call

  • s string
  • commitOptions *git.CommitOptions

func (*MockRepoLike_Expecter) CreateBranch

func (_e *MockRepoLike_Expecter) CreateBranch(s interface{}) *MockRepoLike_CreateBranch_Call

CreateBranch is a helper method to define mock.On call

  • s string

func (*MockRepoLike_Expecter) DirectoryExists

func (_e *MockRepoLike_Expecter) DirectoryExists(s interface{}) *MockRepoLike_DirectoryExists_Call

DirectoryExists is a helper method to define mock.On call

  • s string

func (*MockRepoLike_Expecter) FileExists

func (_e *MockRepoLike_Expecter) FileExists(s interface{}) *MockRepoLike_FileExists_Call

FileExists is a helper method to define mock.On call

  • s string

func (*MockRepoLike_Expecter) GetAuth

GetAuth is a helper method to define mock.On call

func (*MockRepoLike_Expecter) GetFile

func (_e *MockRepoLike_Expecter) GetFile(s interface{}) *MockRepoLike_GetFile_Call

GetFile is a helper method to define mock.On call

  • s string

func (*MockRepoLike_Expecter) GetRepo

GetRepo is a helper method to define mock.On call

func (*MockRepoLike_Expecter) GetTree

GetTree is a helper method to define mock.On call

func (*MockRepoLike_Expecter) Open

func (_e *MockRepoLike_Expecter) Open(v interface{}, s interface{}, s1 interface{}, cloneOptions ...interface{}) *MockRepoLike_Open_Call

Open is a helper method to define mock.On call

  • v repo.RepoType
  • s string
  • s1 string
  • cloneOptions ...repo.CloneOption

func (*MockRepoLike_Expecter) OpenInMemory

func (_e *MockRepoLike_Expecter) OpenInMemory(s interface{}, s1 interface{}, cloneOptions ...interface{}) *MockRepoLike_OpenInMemory_Call

OpenInMemory is a helper method to define mock.On call

  • s string
  • s1 string
  • cloneOptions ...repo.CloneOption

func (*MockRepoLike_Expecter) OpenLocal

func (_e *MockRepoLike_Expecter) OpenLocal(s interface{}, s1 interface{}) *MockRepoLike_OpenLocal_Call

OpenLocal is a helper method to define mock.On call

  • s string
  • s1 string

func (*MockRepoLike_Expecter) Push

func (_e *MockRepoLike_Expecter) Push(pushOptions interface{}) *MockRepoLike_Push_Call

Push is a helper method to define mock.On call

  • pushOptions *git.PushOptions

func (*MockRepoLike_Expecter) SetBasicAuth

func (_e *MockRepoLike_Expecter) SetBasicAuth(s interface{}, s1 interface{}) *MockRepoLike_SetBasicAuth_Call

SetBasicAuth is a helper method to define mock.On call

  • s string
  • s1 string

func (*MockRepoLike_Expecter) SetKey

func (_e *MockRepoLike_Expecter) SetKey(publicKeys interface{}) *MockRepoLike_SetKey_Call

SetKey is a helper method to define mock.On call

  • publicKeys *ssh.PublicKeys

func (*MockRepoLike_Expecter) SetRepo

func (_e *MockRepoLike_Expecter) SetRepo(repository interface{}) *MockRepoLike_SetRepo_Call

SetRepo is a helper method to define mock.On call

  • repository *git.Repository

func (*MockRepoLike_Expecter) SetSource

func (_e *MockRepoLike_Expecter) SetSource(n interface{}) *MockRepoLike_SetSource_Call

SetSource is a helper method to define mock.On call

  • n int

func (*MockRepoLike_Expecter) SetTree

func (_e *MockRepoLike_Expecter) SetTree(worktree interface{}) *MockRepoLike_SetTree_Call

SetTree is a helper method to define mock.On call

  • worktree *git.Worktree

func (*MockRepoLike_Expecter) SourceIs

func (_e *MockRepoLike_Expecter) SourceIs(n interface{}) *MockRepoLike_SourceIs_Call

SourceIs is a helper method to define mock.On call

  • n int

func (*MockRepoLike_Expecter) WalkTree

func (_e *MockRepoLike_Expecter) WalkTree(fn interface{}) *MockRepoLike_WalkTree_Call

WalkTree is a helper method to define mock.On call

  • fn func(*object.File) error

type MockRepoLike_FileExists_Call

type MockRepoLike_FileExists_Call struct {
	*mock.Call
}

MockRepoLike_FileExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FileExists'

func (*MockRepoLike_FileExists_Call) Return

func (*MockRepoLike_FileExists_Call) Run

func (*MockRepoLike_FileExists_Call) RunAndReturn

type MockRepoLike_GetAuth_Call

type MockRepoLike_GetAuth_Call struct {
	*mock.Call
}

MockRepoLike_GetAuth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAuth'

func (*MockRepoLike_GetAuth_Call) Return

func (*MockRepoLike_GetAuth_Call) Run

func (*MockRepoLike_GetAuth_Call) RunAndReturn

type MockRepoLike_GetFile_Call

type MockRepoLike_GetFile_Call struct {
	*mock.Call
}

MockRepoLike_GetFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFile'

func (*MockRepoLike_GetFile_Call) Return

func (*MockRepoLike_GetFile_Call) Run

func (*MockRepoLike_GetFile_Call) RunAndReturn

func (_c *MockRepoLike_GetFile_Call) RunAndReturn(run func(s string) (*object.File, error)) *MockRepoLike_GetFile_Call

type MockRepoLike_GetRepo_Call

type MockRepoLike_GetRepo_Call struct {
	*mock.Call
}

MockRepoLike_GetRepo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRepo'

func (*MockRepoLike_GetRepo_Call) Return

func (*MockRepoLike_GetRepo_Call) Run

func (*MockRepoLike_GetRepo_Call) RunAndReturn

func (_c *MockRepoLike_GetRepo_Call) RunAndReturn(run func() *git.Repository) *MockRepoLike_GetRepo_Call

type MockRepoLike_GetTree_Call

type MockRepoLike_GetTree_Call struct {
	*mock.Call
}

MockRepoLike_GetTree_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTree'

func (*MockRepoLike_GetTree_Call) Return

func (*MockRepoLike_GetTree_Call) Run

func (*MockRepoLike_GetTree_Call) RunAndReturn

func (_c *MockRepoLike_GetTree_Call) RunAndReturn(run func() *git.Worktree) *MockRepoLike_GetTree_Call

type MockRepoLike_OpenInMemory_Call

type MockRepoLike_OpenInMemory_Call struct {
	*mock.Call
}

MockRepoLike_OpenInMemory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OpenInMemory'

func (*MockRepoLike_OpenInMemory_Call) Return

func (*MockRepoLike_OpenInMemory_Call) Run

func (*MockRepoLike_OpenInMemory_Call) RunAndReturn

type MockRepoLike_OpenLocal_Call

type MockRepoLike_OpenLocal_Call struct {
	*mock.Call
}

MockRepoLike_OpenLocal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OpenLocal'

func (*MockRepoLike_OpenLocal_Call) Return

func (_c *MockRepoLike_OpenLocal_Call) Return(repository *git.Repository, worktree *git.Worktree, err error) *MockRepoLike_OpenLocal_Call

func (*MockRepoLike_OpenLocal_Call) Run

func (*MockRepoLike_OpenLocal_Call) RunAndReturn

type MockRepoLike_Open_Call

type MockRepoLike_Open_Call struct {
	*mock.Call
}

MockRepoLike_Open_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Open'

func (*MockRepoLike_Open_Call) Return

func (_c *MockRepoLike_Open_Call) Return(repository *git.Repository, worktree *git.Worktree, err error) *MockRepoLike_Open_Call

func (*MockRepoLike_Open_Call) Run

func (_c *MockRepoLike_Open_Call) Run(run func(v repo.RepoType, s string, s1 string, cloneOptions ...repo.CloneOption)) *MockRepoLike_Open_Call

func (*MockRepoLike_Open_Call) RunAndReturn

func (_c *MockRepoLike_Open_Call) RunAndReturn(run func(v repo.RepoType, s string, s1 string, cloneOptions ...repo.CloneOption) (*git.Repository, *git.Worktree, error)) *MockRepoLike_Open_Call

type MockRepoLike_Push_Call

type MockRepoLike_Push_Call struct {
	*mock.Call
}

MockRepoLike_Push_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Push'

func (*MockRepoLike_Push_Call) Return

func (*MockRepoLike_Push_Call) Run

func (_c *MockRepoLike_Push_Call) Run(run func(pushOptions *git.PushOptions)) *MockRepoLike_Push_Call

func (*MockRepoLike_Push_Call) RunAndReturn

func (_c *MockRepoLike_Push_Call) RunAndReturn(run func(pushOptions *git.PushOptions) error) *MockRepoLike_Push_Call

type MockRepoLike_SetBasicAuth_Call

type MockRepoLike_SetBasicAuth_Call struct {
	*mock.Call
}

MockRepoLike_SetBasicAuth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetBasicAuth'

func (*MockRepoLike_SetBasicAuth_Call) Return

func (*MockRepoLike_SetBasicAuth_Call) Run

func (*MockRepoLike_SetBasicAuth_Call) RunAndReturn

type MockRepoLike_SetKey_Call

type MockRepoLike_SetKey_Call struct {
	*mock.Call
}

MockRepoLike_SetKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetKey'

func (*MockRepoLike_SetKey_Call) Return

func (*MockRepoLike_SetKey_Call) Run

func (_c *MockRepoLike_SetKey_Call) Run(run func(publicKeys *ssh.PublicKeys)) *MockRepoLike_SetKey_Call

func (*MockRepoLike_SetKey_Call) RunAndReturn

func (_c *MockRepoLike_SetKey_Call) RunAndReturn(run func(publicKeys *ssh.PublicKeys)) *MockRepoLike_SetKey_Call

type MockRepoLike_SetRepo_Call

type MockRepoLike_SetRepo_Call struct {
	*mock.Call
}

MockRepoLike_SetRepo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetRepo'

func (*MockRepoLike_SetRepo_Call) Return

func (*MockRepoLike_SetRepo_Call) Run

func (_c *MockRepoLike_SetRepo_Call) Run(run func(repository *git.Repository)) *MockRepoLike_SetRepo_Call

func (*MockRepoLike_SetRepo_Call) RunAndReturn

func (_c *MockRepoLike_SetRepo_Call) RunAndReturn(run func(repository *git.Repository)) *MockRepoLike_SetRepo_Call

type MockRepoLike_SetSource_Call

type MockRepoLike_SetSource_Call struct {
	*mock.Call
}

MockRepoLike_SetSource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetSource'

func (*MockRepoLike_SetSource_Call) Return

func (*MockRepoLike_SetSource_Call) Run

func (*MockRepoLike_SetSource_Call) RunAndReturn

func (_c *MockRepoLike_SetSource_Call) RunAndReturn(run func(n int)) *MockRepoLike_SetSource_Call

type MockRepoLike_SetTree_Call

type MockRepoLike_SetTree_Call struct {
	*mock.Call
}

MockRepoLike_SetTree_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetTree'

func (*MockRepoLike_SetTree_Call) Return

func (*MockRepoLike_SetTree_Call) Run

func (_c *MockRepoLike_SetTree_Call) Run(run func(worktree *git.Worktree)) *MockRepoLike_SetTree_Call

func (*MockRepoLike_SetTree_Call) RunAndReturn

func (_c *MockRepoLike_SetTree_Call) RunAndReturn(run func(worktree *git.Worktree)) *MockRepoLike_SetTree_Call

type MockRepoLike_SourceIs_Call

type MockRepoLike_SourceIs_Call struct {
	*mock.Call
}

MockRepoLike_SourceIs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SourceIs'

func (*MockRepoLike_SourceIs_Call) Return

func (*MockRepoLike_SourceIs_Call) Run

func (*MockRepoLike_SourceIs_Call) RunAndReturn

func (_c *MockRepoLike_SourceIs_Call) RunAndReturn(run func(n int) bool) *MockRepoLike_SourceIs_Call

type MockRepoLike_WalkTree_Call

type MockRepoLike_WalkTree_Call struct {
	*mock.Call
}

MockRepoLike_WalkTree_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WalkTree'

func (*MockRepoLike_WalkTree_Call) Return

func (*MockRepoLike_WalkTree_Call) Run

func (*MockRepoLike_WalkTree_Call) RunAndReturn

func (_c *MockRepoLike_WalkTree_Call) RunAndReturn(run func(fn func(*object.File) error) error) *MockRepoLike_WalkTree_Call

Jump to

Keyboard shortcuts

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