testrepo

package
v0.0.0-...-39bc41e Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 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 MockRepo

type MockRepo struct {
	mock.Mock
}

func NewMockRepo

func NewMockRepo() *MockRepo

func (*MockRepo) AssertCloneCalled

func (repo *MockRepo) AssertCloneCalled(t *testing.T, localPath string, repoUrl string)

func (*MockRepo) AssertCloneNotCalled

func (repo *MockRepo) AssertCloneNotCalled(t *testing.T, localPath string, repoUrl string)

func (*MockRepo) Clone

func (repo *MockRepo) Clone(localPath string, repoUrl string) (*git.Repository, error)

func (*MockRepo) Delete

func (repo *MockRepo) Delete(localPath string) error

func (*MockRepo) Init

func (repo *MockRepo) Init(localPath string) (*git.Repository, error)

func (*MockRepo) Open

func (repo *MockRepo) Open(localPath string) (*git.Repository, error)

func (*MockRepo) Pull

func (repo *MockRepo) Pull(repository *git.Repository) error

func (*MockRepo) StubClone

func (repo *MockRepo) StubClone(shouldError bool)

func (*MockRepo) StubDelete

func (repo *MockRepo) StubDelete(shouldError bool)

func (*MockRepo) StubInit

func (repo *MockRepo) StubInit(shouldError bool)

func (*MockRepo) StubOpen

func (repo *MockRepo) StubOpen(shouldError bool)

func (*MockRepo) StubPull

func (repo *MockRepo) StubPull(shouldError bool)

Jump to

Keyboard shortcuts

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