mocks

package
v0.0.0-...-3a364f3 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MIT Imports: 3 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 mockConstructorTestingTNewClient) *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.

func (*Client) Check

func (_m *Client) Check() bool

Check provides a mock function with given fields:

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) 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:

type Normalizer

type Normalizer struct {
	mock.Mock
}

Normalizer is an autogenerated mock type for the Normalizer type

func NewNormalizer

func NewNormalizer(t mockConstructorTestingTNewNormalizer) *Normalizer

NewNormalizer creates a new instance of Normalizer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Normalizer) Check

func (_m *Normalizer) Check(env map[string]string) bool

Check provides a mock function with given fields: env

func (*Normalizer) Denormalize

func (_m *Normalizer) Denormalize(spec ncispec.NormalizeCISpec) map[string]string

Denormalize provides a mock function with given fields: spec

func (*Normalizer) GetName

func (_m *Normalizer) GetName() string

GetName provides a mock function with given fields:

func (*Normalizer) GetSlug

func (_m *Normalizer) GetSlug() string

GetSlug provides a mock function with given fields:

func (*Normalizer) Normalize

func (_m *Normalizer) Normalize(env map[string]string) ncispec.NormalizeCISpec

Normalize provides a mock function with given fields: env

Jump to

Keyboard shortcuts

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