Documentation ¶
Index ¶
- type Client
- func (_m *Client) Check() bool
- func (_m *Client) CreateBranch(branch string) error
- func (_m *Client) Diff(from *vcsapi.VCSRef, to *vcsapi.VCSRef) ([]vcsapi.VCSDiff, error)
- func (_m *Client) FindCommitByHash(hash string, includeChanges bool) (vcsapi.Commit, error)
- func (_m *Client) FindCommitsBetween(from *vcsapi.VCSRef, to *vcsapi.VCSRef, includeChanges bool, limit int) ([]vcsapi.Commit, error)
- func (_m *Client) FindLatestRelease(stable bool) (vcsapi.VCSRelease, error)
- func (_m *Client) GetTags() []vcsapi.VCSRef
- func (_m *Client) GetTagsByHash(hash string) []vcsapi.VCSRef
- func (_m *Client) IsClean() (bool, error)
- func (_m *Client) UncommittedChanges() ([]string, error)
- func (_m *Client) VCSHead() (vcsapi.VCSRef, error)
- func (_m *Client) VCSHostServer(remote string) string
- func (_m *Client) VCSHostType(server string) string
- func (_m *Client) VCSRefToInternalRef(ref vcsapi.VCSRef) string
- func (_m *Client) VCSRemote() string
- func (_m *Client) VCSType() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶
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) CreateBranch ¶
CreateBranch provides a mock function with given fields: branch
func (*Client) FindCommitByHash ¶
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) GetTagsByHash ¶
GetTagsByHash provides a mock function with given fields: hash
func (*Client) UncommittedChanges ¶
UncommittedChanges provides a mock function with given fields:
func (*Client) VCSHostServer ¶
VCSHostServer provides a mock function with given fields: remote
func (*Client) VCSHostType ¶
VCSHostType provides a mock function with given fields: server
func (*Client) VCSRefToInternalRef ¶
VCSRefToInternalRef provides a mock function with given fields: ref