mocks

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2019 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 GitService

type GitService struct {
	mock.Mock
}

GitService is an autogenerated mock type for the GitService type

func (*GitService) Clone

func (_m *GitService) Clone(remote string, branch string, directory string) (*git.Repository, error)

Clone provides a mock function with given fields: remote, branch, directory

func (*GitService) DiffRemote

func (_m *GitService) DiffRemote(repo *git.Repository, branch string) ([]gpoll.CommitDiff, error)

DiffRemote provides a mock function with given fields: repo, branch

func (*GitService) FetchLatestRemoteCommit

func (_m *GitService) FetchLatestRemoteCommit(repo *git.Repository, branch string) (*object.Commit, error)

FetchLatestRemoteCommit provides a mock function with given fields: repo, branch

func (*GitService) HeadCommit

func (_m *GitService) HeadCommit(repo *git.Repository) (*object.Commit, error)

HeadCommit provides a mock function with given fields: repo

type Poller

type Poller struct {
	mock.Mock
}

Poller is an autogenerated mock type for the Poller type

func (*Poller) Poll

func (_m *Poller) Poll() ([]gpoll.CommitDiff, error)

Poll provides a mock function with given fields:

func (*Poller) Start

func (_m *Poller) Start() error

Start provides a mock function with given fields:

func (*Poller) StartAsync

func (_m *Poller) StartAsync() (chan gpoll.CommitDiff, error)

StartAsync provides a mock function with given fields:

func (*Poller) Stop

func (_m *Poller) Stop()

Stop 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