mocks

package
v0.2.24 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func (*Repository) BlobObject

func (_m *Repository) BlobObject(_a0 plumbing.Hash) (*object.Blob, error)

BlobObject provides a mock function with given fields: _a0

func (*Repository) BlobObjects

func (_m *Repository) BlobObjects() (*object.BlobIter, error)

BlobObjects provides a mock function with given fields:

func (*Repository) Branch

func (_m *Repository) Branch(_a0 string) (*config.Branch, error)

Branch provides a mock function with given fields: _a0

func (*Repository) Branches

func (_m *Repository) Branches() (storer.ReferenceIter, error)

Branches provides a mock function with given fields:

func (*Repository) CommitObject

func (_m *Repository) CommitObject(_a0 plumbing.Hash) (*object.Commit, error)

CommitObject provides a mock function with given fields: _a0

func (*Repository) CommitObjects

func (_m *Repository) CommitObjects() (object.CommitIter, error)

CommitObjects provides a mock function with given fields:

func (*Repository) Config

func (_m *Repository) Config() (*config.Config, error)

Config provides a mock function with given fields:

func (*Repository) ConfigScoped

func (_m *Repository) ConfigScoped(_a0 config.Scope) (*config.Config, error)

ConfigScoped provides a mock function with given fields: _a0

func (*Repository) CreateBranch

func (_m *Repository) CreateBranch(_a0 *config.Branch) error

CreateBranch provides a mock function with given fields: _a0

func (*Repository) CreateRemote

func (_m *Repository) CreateRemote(_a0 *config.RemoteConfig) (*git.Remote, error)

CreateRemote provides a mock function with given fields: _a0

func (*Repository) CreateRemoteAnonymous

func (_m *Repository) CreateRemoteAnonymous(_a0 *config.RemoteConfig) (*git.Remote, error)

CreateRemoteAnonymous provides a mock function with given fields: _a0

func (*Repository) CreateTag

func (_m *Repository) CreateTag(_a0 string, _a1 plumbing.Hash, _a2 *git.CreateTagOptions) (*plumbing.Reference, error)

CreateTag provides a mock function with given fields: _a0, _a1, _a2

func (*Repository) DeleteBranch

func (_m *Repository) DeleteBranch(_a0 string) error

DeleteBranch provides a mock function with given fields: _a0

func (*Repository) DeleteObject

func (_m *Repository) DeleteObject(_a0 plumbing.Hash) error

DeleteObject provides a mock function with given fields: _a0

func (*Repository) DeleteRemote

func (_m *Repository) DeleteRemote(_a0 string) error

DeleteRemote provides a mock function with given fields: _a0

func (*Repository) DeleteTag

func (_m *Repository) DeleteTag(_a0 string) error

DeleteTag provides a mock function with given fields: _a0

func (*Repository) Fetch

func (_m *Repository) Fetch(_a0 *git.FetchOptions) error

Fetch provides a mock function with given fields: _a0

func (*Repository) FetchContext

func (_m *Repository) FetchContext(_a0 context.Context, _a1 *git.FetchOptions) error

FetchContext provides a mock function with given fields: _a0, _a1

func (*Repository) Head

func (_m *Repository) Head() (*plumbing.Reference, error)

Head provides a mock function with given fields:

func (*Repository) Log

func (_m *Repository) Log(_a0 *git.LogOptions) (object.CommitIter, error)

Log provides a mock function with given fields: _a0

func (*Repository) Notes

func (_m *Repository) Notes() (storer.ReferenceIter, error)

Notes provides a mock function with given fields:

func (*Repository) Object

func (_m *Repository) Object(_a0 plumbing.ObjectType, _a1 plumbing.Hash) (object.Object, error)

Object provides a mock function with given fields: _a0, _a1

func (*Repository) Objects

func (_m *Repository) Objects() (*object.ObjectIter, error)

Objects provides a mock function with given fields:

func (*Repository) Prune

func (_m *Repository) Prune(_a0 git.PruneOptions) error

Prune provides a mock function with given fields: _a0

func (*Repository) Push

func (_m *Repository) Push(_a0 *git.PushOptions) error

Push provides a mock function with given fields: _a0

func (*Repository) PushContext

func (_m *Repository) PushContext(_a0 context.Context, _a1 *git.PushOptions) error

PushContext provides a mock function with given fields: _a0, _a1

func (*Repository) Reference

func (_m *Repository) Reference(_a0 plumbing.ReferenceName, _a1 bool) (*plumbing.Reference, error)

Reference provides a mock function with given fields: _a0, _a1

func (*Repository) References

func (_m *Repository) References() (storer.ReferenceIter, error)

References provides a mock function with given fields:

func (*Repository) Remote

func (_m *Repository) Remote(_a0 string) (*git.Remote, error)

Remote provides a mock function with given fields: _a0

func (*Repository) Remotes

func (_m *Repository) Remotes() ([]*git.Remote, error)

Remotes provides a mock function with given fields:

func (*Repository) RepackObjects

func (_m *Repository) RepackObjects(_a0 *git.RepackConfig) error

RepackObjects provides a mock function with given fields: _a0

func (*Repository) ResolveRevision

func (_m *Repository) ResolveRevision(_a0 plumbing.Revision) (*plumbing.Hash, error)

ResolveRevision provides a mock function with given fields: _a0

func (*Repository) SetConfig

func (_m *Repository) SetConfig(_a0 *config.Config) error

SetConfig provides a mock function with given fields: _a0

func (*Repository) Tag

func (_m *Repository) Tag(_a0 string) (*plumbing.Reference, error)

Tag provides a mock function with given fields: _a0

func (*Repository) TagObject

func (_m *Repository) TagObject(_a0 plumbing.Hash) (*object.Tag, error)

TagObject provides a mock function with given fields: _a0

func (*Repository) TagObjects

func (_m *Repository) TagObjects() (*object.TagIter, error)

TagObjects provides a mock function with given fields:

func (*Repository) Tags

func (_m *Repository) Tags() (storer.ReferenceIter, error)

Tags provides a mock function with given fields:

func (*Repository) TreeObject

func (_m *Repository) TreeObject(_a0 plumbing.Hash) (*object.Tree, error)

TreeObject provides a mock function with given fields: _a0

func (*Repository) TreeObjects

func (_m *Repository) TreeObjects() (*object.TreeIter, error)

TreeObjects provides a mock function with given fields:

func (*Repository) Worktree

func (_m *Repository) Worktree() (*git.Worktree, error)

Worktree provides a mock function with given fields:

type Worktree

type Worktree struct {
	mock.Mock
}

Worktree is an autogenerated mock type for the Worktree type

func (*Worktree) Add

func (_m *Worktree) Add(_a0 string) (plumbing.Hash, error)

Add provides a mock function with given fields: _a0

func (*Worktree) AddGlob

func (_m *Worktree) AddGlob(_a0 string) error

AddGlob provides a mock function with given fields: _a0

func (*Worktree) AddWithOptions

func (_m *Worktree) AddWithOptions(_a0 *git.AddOptions) error

AddWithOptions provides a mock function with given fields: _a0

func (*Worktree) Checkout

func (_m *Worktree) Checkout(_a0 *git.CheckoutOptions) error

Checkout provides a mock function with given fields: _a0

func (*Worktree) Clean

func (_m *Worktree) Clean(_a0 *git.CleanOptions) error

Clean provides a mock function with given fields: _a0

func (*Worktree) Commit

func (_m *Worktree) Commit(_a0 string, _a1 *git.CommitOptions) (plumbing.Hash, error)

Commit provides a mock function with given fields: _a0, _a1

func (*Worktree) Grep

func (_m *Worktree) Grep(_a0 *git.GrepOptions) ([]git.GrepResult, error)

Grep provides a mock function with given fields: _a0

func (*Worktree) Move

func (_m *Worktree) Move(_a0 string, _a1 string) (plumbing.Hash, error)

Move provides a mock function with given fields: _a0, _a1

func (*Worktree) Pull

func (_m *Worktree) Pull(_a0 *git.PullOptions) error

Pull provides a mock function with given fields: _a0

func (*Worktree) PullContext

func (_m *Worktree) PullContext(_a0 context.Context, _a1 *git.PullOptions) error

PullContext provides a mock function with given fields: _a0, _a1

func (*Worktree) Remove

func (_m *Worktree) Remove(_a0 string) (plumbing.Hash, error)

Remove provides a mock function with given fields: _a0

func (*Worktree) RemoveGlob

func (_m *Worktree) RemoveGlob(_a0 string) error

RemoveGlob provides a mock function with given fields: _a0

func (*Worktree) Reset

func (_m *Worktree) Reset(_a0 *git.ResetOptions) error

Reset provides a mock function with given fields: _a0

func (*Worktree) Status

func (_m *Worktree) Status() (git.Status, error)

Status provides a mock function with given fields:

func (*Worktree) Submodule

func (_m *Worktree) Submodule(_a0 string) (*git.Submodule, error)

Submodule provides a mock function with given fields: _a0

func (*Worktree) Submodules

func (_m *Worktree) Submodules() (git.Submodules, error)

Submodules 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