mocks

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Git

type Git struct {
	mock.Mock
}

Git is an autogenerated mock type for the Git type

func (*Git) GetRelativeLocation

func (_m *Git) GetRelativeLocation(currentDir string) (string, error)

GetRelativeLocation provides a mock function with given fields: currentDir

func (*Git) NewRepository

func (_m *Git) NewRepository(dst string) (git.WriteableRepository, error)

NewRepository provides a mock function with given fields: dst

func (*Git) OpenRepository

func (_m *Git) OpenRepository(repoDir string) (git.Repository, error)

OpenRepository provides a mock function with given fields: repoDir

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func (*Repository) RecursiveSharedCloneTo

func (_m *Repository) RecursiveSharedCloneTo(dst string) (git.WorktreeRepository, error)

RecursiveSharedCloneTo provides a mock function with given fields: dst

func (*Repository) ResolveCommit

func (_m *Repository) ResolveCommit(ref string) (git.ResolvedUserRef, error)

ResolveCommit provides a mock function with given fields: ref

func (*Repository) RootDir

func (_m *Repository) RootDir() string

RootDir provides a mock function with given fields:

type ResolvedCommit

type ResolvedCommit struct {
	mock.Mock
}

ResolvedCommit is an autogenerated mock type for the ResolvedCommit type

func (*ResolvedCommit) Hash

func (_m *ResolvedCommit) Hash() git.Hash

Hash provides a mock function with given fields:

func (*ResolvedCommit) Repo

func (_m *ResolvedCommit) Repo() git.Repository

Repo provides a mock function with given fields:

type ResolvedUserRef

type ResolvedUserRef struct {
	mock.Mock
}

ResolvedUserRef is an autogenerated mock type for the ResolvedUserRef type

func (*ResolvedUserRef) Commit

func (_m *ResolvedUserRef) Commit() git.ResolvedCommit

Commit provides a mock function with given fields:

func (*ResolvedUserRef) UserRef

func (_m *ResolvedUserRef) UserRef() string

UserRef provides a mock function with given fields:

type WorktreeRepository

type WorktreeRepository struct {
	mock.Mock
}

WorktreeRepository is an autogenerated mock type for the WorktreeRepository type

func (*WorktreeRepository) Checkout

func (_m *WorktreeRepository) Checkout(commit git.ResolvedCommit) error

Checkout provides a mock function with given fields: commit

func (*WorktreeRepository) RecursiveSharedCloneTo

func (_m *WorktreeRepository) RecursiveSharedCloneTo(dst string) (git.WorktreeRepository, error)

RecursiveSharedCloneTo provides a mock function with given fields: dst

func (*WorktreeRepository) Remove

func (_m *WorktreeRepository) Remove() error

Remove provides a mock function with given fields:

func (*WorktreeRepository) ResolveCommit

func (_m *WorktreeRepository) ResolveCommit(ref string) (git.ResolvedUserRef, error)

ResolveCommit provides a mock function with given fields: ref

func (*WorktreeRepository) RootDir

func (_m *WorktreeRepository) RootDir() string

RootDir provides a mock function with given fields:

type WriteableRepository

type WriteableRepository struct {
	mock.Mock
}

WriteableRepository is an autogenerated mock type for the WriteableRepository type

func (*WriteableRepository) ClearSourceControlledFilesFromWorktree

func (_m *WriteableRepository) ClearSourceControlledFilesFromWorktree() error

ClearSourceControlledFilesFromWorktree provides a mock function with given fields:

func (*WriteableRepository) CommitEverythingInWorktree

func (_m *WriteableRepository) CommitEverythingInWorktree(message string) (git.Hash, error)

CommitEverythingInWorktree provides a mock function with given fields: message

func (*WriteableRepository) RecursiveSharedCloneTo

func (_m *WriteableRepository) RecursiveSharedCloneTo(dst string) (git.WorktreeRepository, error)

RecursiveSharedCloneTo provides a mock function with given fields: dst

func (*WriteableRepository) ResolveCommit

func (_m *WriteableRepository) ResolveCommit(ref string) (git.ResolvedUserRef, error)

ResolveCommit provides a mock function with given fields: ref

func (*WriteableRepository) RootDir

func (_m *WriteableRepository) RootDir() string

RootDir provides a mock function with given fields:

Jump to

Keyboard shortcuts

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