mocks

package
v0.0.0-...-841437a Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commit

func Commit(args mock.Arguments, i int) *object.Commit

func GitChangeSlice

func GitChangeSlice(args mock.Arguments, i int) []model.GitChange

func Repository

func Repository(args mock.Arguments, i int) *git.Repository

func StringSlice

func StringSlice(args mock.Arguments, i int) []string

Types

type GitServiceMock

type GitServiceMock struct {
	mock.Mock
}

func (*GitServiceMock) Clone

func (g *GitServiceMock) Clone(remote, branch, directory string) (*git.Repository, error)

func (*GitServiceMock) DiffRemote

func (g *GitServiceMock) DiffRemote(repo *git.Repository, branch string) ([]model.GitChange, error)

func (*GitServiceMock) FetchLatestRemoteCommit

func (g *GitServiceMock) FetchLatestRemoteCommit(repo *git.Repository, branch string) (*object.Commit, error)

Jump to

Keyboard shortcuts

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