cli

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupT added in v1.1.0

func CleanupT(t *testing.T, r *git5.Repository)

func CreateT added in v1.1.0

func CreateT(t *testing.T, tags []string) *git5.Repository

Types

type TagCreator added in v1.0.0

type TagCreator interface {
	// CreateTag creates the given tag in the repository.
	CreateTag(semantic.Tag) error
}

A TagCreator is used to create git tags.

func NewTagCreator added in v1.0.0

func NewTagCreator(r *git5.Repository) TagCreator

type TagCreatorMock added in v1.0.0

type TagCreatorMock struct {
	CreateTagMock mTagCreatorMockCreateTag
	// contains filtered or unexported fields
}

TagCreatorMock implements TagCreator

func NewTagCreatorMock added in v1.0.0

func NewTagCreatorMock(t minimock.Tester) *TagCreatorMock

NewTagCreatorMock returns a mock for TagCreator

func (*TagCreatorMock) CreateTag added in v1.0.0

func (mmCreateTag *TagCreatorMock) CreateTag(t1 semantic.Tag) (err error)

CreateTag implements TagCreator

func (*TagCreatorMock) CreateTagAfterCounter added in v1.0.0

func (mmCreateTag *TagCreatorMock) CreateTagAfterCounter() uint64

CreateTagAfterCounter returns a count of finished TagCreatorMock.CreateTag invocations

func (*TagCreatorMock) CreateTagBeforeCounter added in v1.0.0

func (mmCreateTag *TagCreatorMock) CreateTagBeforeCounter() uint64

CreateTagBeforeCounter returns a count of TagCreatorMock.CreateTag invocations

func (*TagCreatorMock) MinimockCreateTagDone added in v1.0.0

func (m *TagCreatorMock) MinimockCreateTagDone() bool

MinimockCreateTagDone returns true if the count of the CreateTag invocations corresponds the number of defined expectations

func (*TagCreatorMock) MinimockCreateTagInspect added in v1.0.0

func (m *TagCreatorMock) MinimockCreateTagInspect()

MinimockCreateTagInspect logs each unmet expectation

func (*TagCreatorMock) MinimockFinish added in v1.0.0

func (m *TagCreatorMock) MinimockFinish()

MinimockFinish checks that all mocked methods have been called the expected number of times

func (*TagCreatorMock) MinimockWait added in v1.0.0

func (m *TagCreatorMock) MinimockWait(timeout mm_time.Duration)

MinimockWait waits for all mocked methods to be called the expected number of times

type TagCreatorMockCreateTagExpectation added in v1.0.0

type TagCreatorMockCreateTagExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

TagCreatorMockCreateTagExpectation specifies expectation struct of the TagCreator.CreateTag

func (*TagCreatorMockCreateTagExpectation) Then added in v1.0.0

Then sets up TagCreator.CreateTag return parameters for the expectation previously defined by the When method

type TagCreatorMockCreateTagParams added in v1.0.0

type TagCreatorMockCreateTagParams struct {
	// contains filtered or unexported fields
}

TagCreatorMockCreateTagParams contains parameters of the TagCreator.CreateTag

type TagCreatorMockCreateTagResults added in v1.0.0

type TagCreatorMockCreateTagResults struct {
	// contains filtered or unexported fields
}

TagCreatorMockCreateTagResults contains results of the TagCreator.CreateTag

type TagLister added in v1.0.0

type TagLister interface {
	// ListRepoTags lists the tags on a given repository.
	ListRepoTags() (tags.Taxonomy, error)
}

A TagLister is used to list tags associated with the git repository of a Go module.

func NewTagLister added in v1.0.0

func NewTagLister(r *git5.Repository) TagLister

type TagListerMock added in v1.0.0

type TagListerMock struct {
	ListRepoTagsMock mTagListerMockListRepoTags
	// contains filtered or unexported fields
}

TagListerMock implements TagLister

func NewTagListerMock added in v1.0.0

func NewTagListerMock(t minimock.Tester) *TagListerMock

NewTagListerMock returns a mock for TagLister

func (*TagListerMock) ListRepoTags added in v1.0.0

func (mmListRepoTags *TagListerMock) ListRepoTags() (t1 tags.Taxonomy, err error)

ListRepoTags implements TagLister

func (*TagListerMock) ListRepoTagsAfterCounter added in v1.0.0

func (mmListRepoTags *TagListerMock) ListRepoTagsAfterCounter() uint64

ListRepoTagsAfterCounter returns a count of finished TagListerMock.ListRepoTags invocations

func (*TagListerMock) ListRepoTagsBeforeCounter added in v1.0.0

func (mmListRepoTags *TagListerMock) ListRepoTagsBeforeCounter() uint64

ListRepoTagsBeforeCounter returns a count of TagListerMock.ListRepoTags invocations

func (*TagListerMock) MinimockFinish added in v1.0.0

func (m *TagListerMock) MinimockFinish()

MinimockFinish checks that all mocked methods have been called the expected number of times

func (*TagListerMock) MinimockListRepoTagsDone added in v1.0.0

func (m *TagListerMock) MinimockListRepoTagsDone() bool

MinimockListRepoTagsDone returns true if the count of the ListRepoTags invocations corresponds the number of defined expectations

func (*TagListerMock) MinimockListRepoTagsInspect added in v1.0.0

func (m *TagListerMock) MinimockListRepoTagsInspect()

MinimockListRepoTagsInspect logs each unmet expectation

func (*TagListerMock) MinimockWait added in v1.0.0

func (m *TagListerMock) MinimockWait(timeout mm_time.Duration)

MinimockWait waits for all mocked methods to be called the expected number of times

type TagListerMockListRepoTagsExpectation added in v1.0.0

type TagListerMockListRepoTagsExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

TagListerMockListRepoTagsExpectation specifies expectation struct of the TagLister.ListRepoTags

type TagListerMockListRepoTagsResults added in v1.0.0

type TagListerMockListRepoTagsResults struct {
	// contains filtered or unexported fields
}

TagListerMockListRepoTagsResults contains results of the TagLister.ListRepoTags

type TagPusher added in v1.1.0

type TagPusher interface {
	// PushTag pushes the given tag to the default remote.
	PushTag(semantic.Tag) error
}

A TagPusher is used to push tags to a remote.

func NewTagPusher added in v1.1.0

func NewTagPusher(r *git5.Repository) TagPusher

type TagPusherMock added in v1.1.0

type TagPusherMock struct {
	PushTagMock mTagPusherMockPushTag
	// contains filtered or unexported fields
}

TagPusherMock implements TagPusher

func NewTagPusherMock added in v1.1.0

func NewTagPusherMock(t minimock.Tester) *TagPusherMock

NewTagPusherMock returns a mock for TagPusher

func (*TagPusherMock) MinimockFinish added in v1.1.0

func (m *TagPusherMock) MinimockFinish()

MinimockFinish checks that all mocked methods have been called the expected number of times

func (*TagPusherMock) MinimockPushTagDone added in v1.1.0

func (m *TagPusherMock) MinimockPushTagDone() bool

MinimockPushTagDone returns true if the count of the PushTag invocations corresponds the number of defined expectations

func (*TagPusherMock) MinimockPushTagInspect added in v1.1.0

func (m *TagPusherMock) MinimockPushTagInspect()

MinimockPushTagInspect logs each unmet expectation

func (*TagPusherMock) MinimockWait added in v1.1.0

func (m *TagPusherMock) MinimockWait(timeout mm_time.Duration)

MinimockWait waits for all mocked methods to be called the expected number of times

func (*TagPusherMock) PushTag added in v1.1.0

func (mmPushTag *TagPusherMock) PushTag(t1 semantic.Tag) (err error)

PushTag implements TagPusher

func (*TagPusherMock) PushTagAfterCounter added in v1.1.0

func (mmPushTag *TagPusherMock) PushTagAfterCounter() uint64

PushTagAfterCounter returns a count of finished TagPusherMock.PushTag invocations

func (*TagPusherMock) PushTagBeforeCounter added in v1.1.0

func (mmPushTag *TagPusherMock) PushTagBeforeCounter() uint64

PushTagBeforeCounter returns a count of TagPusherMock.PushTag invocations

type TagPusherMockPushTagExpectation added in v1.1.0

type TagPusherMockPushTagExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

TagPusherMockPushTagExpectation specifies expectation struct of the TagPusher.PushTag

func (*TagPusherMockPushTagExpectation) Then added in v1.1.0

Then sets up TagPusher.PushTag return parameters for the expectation previously defined by the When method

type TagPusherMockPushTagParams added in v1.1.0

type TagPusherMockPushTagParams struct {
	// contains filtered or unexported fields
}

TagPusherMockPushTagParams contains parameters of the TagPusher.PushTag

type TagPusherMockPushTagResults added in v1.1.0

type TagPusherMockPushTagResults struct {
	// contains filtered or unexported fields
}

TagPusherMockPushTagResults contains results of the TagPusher.PushTag

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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