mocks

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

type Repo struct {
	mock.Mock
}

Repo is an autogenerated mock type for the Repo type

func NewRepo

func NewRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *Repo

NewRepo creates a new instance of Repo. 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 (*Repo) AllChangelogPaths

func (_mock *Repo) AllChangelogPaths(ctx context.Context) ([]string, error)

AllChangelogPaths provides a mock function for the type Repo

func (*Repo) CommitTagAndPush

func (_mock *Repo) CommitTagAndPush(ctx context.Context, opts vcs.CommitTagPushOptions) error

CommitTagAndPush provides a mock function for the type Repo

func (*Repo) EXPECT

func (_m *Repo) EXPECT() *Repo_Expecter

func (*Repo) IsChangelogModifiedSinceTag

func (_mock *Repo) IsChangelogModifiedSinceTag(ctx context.Context, changelogPath string, tagName string) (bool, error)

IsChangelogModifiedSinceTag provides a mock function for the type Repo

func (*Repo) ReachableTags

func (_mock *Repo) ReachableTags(ctx context.Context) ([]vcs.TagInfo, error)

ReachableTags provides a mock function for the type Repo

type Repo_AllChangelogPaths_Call

type Repo_AllChangelogPaths_Call struct {
	*mock.Call
}

Repo_AllChangelogPaths_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllChangelogPaths'

func (*Repo_AllChangelogPaths_Call) Return

func (*Repo_AllChangelogPaths_Call) Run

func (*Repo_AllChangelogPaths_Call) RunAndReturn

type Repo_CommitTagAndPush_Call

type Repo_CommitTagAndPush_Call struct {
	*mock.Call
}

Repo_CommitTagAndPush_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CommitTagAndPush'

func (*Repo_CommitTagAndPush_Call) Return

func (*Repo_CommitTagAndPush_Call) Run

func (*Repo_CommitTagAndPush_Call) RunAndReturn

type Repo_Expecter

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

func (*Repo_Expecter) AllChangelogPaths

func (_e *Repo_Expecter) AllChangelogPaths(ctx interface{}) *Repo_AllChangelogPaths_Call

AllChangelogPaths is a helper method to define mock.On call

  • ctx context.Context

func (*Repo_Expecter) CommitTagAndPush

func (_e *Repo_Expecter) CommitTagAndPush(ctx interface{}, opts interface{}) *Repo_CommitTagAndPush_Call

CommitTagAndPush is a helper method to define mock.On call

  • ctx context.Context
  • opts vcs.CommitTagPushOptions

func (*Repo_Expecter) IsChangelogModifiedSinceTag

func (_e *Repo_Expecter) IsChangelogModifiedSinceTag(ctx interface{}, changelogPath interface{}, tagName interface{}) *Repo_IsChangelogModifiedSinceTag_Call

IsChangelogModifiedSinceTag is a helper method to define mock.On call

  • ctx context.Context
  • changelogPath string
  • tagName string

func (*Repo_Expecter) ReachableTags

func (_e *Repo_Expecter) ReachableTags(ctx interface{}) *Repo_ReachableTags_Call

ReachableTags is a helper method to define mock.On call

  • ctx context.Context

type Repo_IsChangelogModifiedSinceTag_Call

type Repo_IsChangelogModifiedSinceTag_Call struct {
	*mock.Call
}

Repo_IsChangelogModifiedSinceTag_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsChangelogModifiedSinceTag'

func (*Repo_IsChangelogModifiedSinceTag_Call) Return

func (*Repo_IsChangelogModifiedSinceTag_Call) Run

func (*Repo_IsChangelogModifiedSinceTag_Call) RunAndReturn

func (_c *Repo_IsChangelogModifiedSinceTag_Call) RunAndReturn(run func(ctx context.Context, changelogPath string, tagName string) (bool, error)) *Repo_IsChangelogModifiedSinceTag_Call

type Repo_ReachableTags_Call

type Repo_ReachableTags_Call struct {
	*mock.Call
}

Repo_ReachableTags_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReachableTags'

func (*Repo_ReachableTags_Call) Return

func (_c *Repo_ReachableTags_Call) Return(tagInfos []vcs.TagInfo, err error) *Repo_ReachableTags_Call

func (*Repo_ReachableTags_Call) Run

func (*Repo_ReachableTags_Call) RunAndReturn

func (_c *Repo_ReachableTags_Call) RunAndReturn(run func(ctx context.Context) ([]vcs.TagInfo, error)) *Repo_ReachableTags_Call

Jump to

Keyboard shortcuts

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