mocks

package
v0.0.0-...-5c7ce4c Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 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 Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Client) Check

func (_m *Client) Check() bool

Check provides a mock function with given fields:

func (*Client) CreateBranch

func (_m *Client) CreateBranch(branch string) error

CreateBranch provides a mock function with given fields: branch

func (*Client) Diff

func (_m *Client) Diff(from *vcsapi.VCSRef, to *vcsapi.VCSRef) ([]vcsapi.VCSDiff, error)

Diff provides a mock function with given fields: from, to

func (*Client) FindCommitByHash

func (_m *Client) FindCommitByHash(hash string, includeChanges bool) (vcsapi.Commit, error)

FindCommitByHash provides a mock function with given fields: hash, includeChanges

func (*Client) FindCommitsBetween

func (_m *Client) FindCommitsBetween(from *vcsapi.VCSRef, to *vcsapi.VCSRef, includeChanges bool, limit int) ([]vcsapi.Commit, error)

FindCommitsBetween provides a mock function with given fields: from, to, includeChanges, limit

func (*Client) FindLatestRelease

func (_m *Client) FindLatestRelease(stable bool) (vcsapi.VCSRelease, error)

FindLatestRelease provides a mock function with given fields: stable

func (*Client) GetTags

func (_m *Client) GetTags() []vcsapi.VCSRef

GetTags provides a mock function with given fields:

func (*Client) GetTagsByHash

func (_m *Client) GetTagsByHash(hash string) []vcsapi.VCSRef

GetTagsByHash provides a mock function with given fields: hash

func (*Client) IsClean

func (_m *Client) IsClean() (bool, error)

IsClean provides a mock function with given fields:

func (*Client) UncommittedChanges

func (_m *Client) UncommittedChanges() ([]string, error)

UncommittedChanges provides a mock function with given fields:

func (*Client) VCSHead

func (_m *Client) VCSHead() (vcsapi.VCSRef, error)

VCSHead provides a mock function with given fields:

func (*Client) VCSHostServer

func (_m *Client) VCSHostServer(remote string) string

VCSHostServer provides a mock function with given fields: remote

func (*Client) VCSHostType

func (_m *Client) VCSHostType(server string) string

VCSHostType provides a mock function with given fields: server

func (*Client) VCSRefToInternalRef

func (_m *Client) VCSRefToInternalRef(ref vcsapi.VCSRef) string

VCSRefToInternalRef provides a mock function with given fields: ref

func (*Client) VCSRemote

func (_m *Client) VCSRemote() string

VCSRemote provides a mock function with given fields:

func (*Client) VCSType

func (_m *Client) VCSType() string

VCSType 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