mocks

package
v0.0.40 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 2 Imported by: ? 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 GitGetBitbucketI

type GitGetBitbucketI struct {
	mock.Mock
}

GitGetBitbucketI is an autogenerated mock type for the GitGetBitbucketI type

func NewGitGetBitbucketI

func NewGitGetBitbucketI(t interface {
	mock.TestingT
	Cleanup(func())
}) *GitGetBitbucketI

NewGitGetBitbucketI creates a new instance of GitGetBitbucketI. 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 (*GitGetBitbucketI) CreateRepository

func (_mock *GitGetBitbucketI) CreateRepository(repoSha string, repository string, mirrorVisibilityMode string, sourceURL string, projectName string) *bitbucket.Repository

CreateRepository provides a mock function for the type GitGetBitbucketI

func (*GitGetBitbucketI) EXPECT

func (*GitGetBitbucketI) FetchOwnerRepos

func (_mock *GitGetBitbucketI) FetchOwnerRepos(repoSha string, owner string, bitbucketRole string) []bitbucket.Repository

FetchOwnerRepos provides a mock function for the type GitGetBitbucketI

func (*GitGetBitbucketI) Init

func (_mock *GitGetBitbucketI) Init() bool

Init provides a mock function for the type GitGetBitbucketI

func (*GitGetBitbucketI) RepositoryExists

func (_mock *GitGetBitbucketI) RepositoryExists(repoSha string, owner string, repository string) bool

RepositoryExists provides a mock function for the type GitGetBitbucketI

type GitGetBitbucketI_CreateRepository_Call

type GitGetBitbucketI_CreateRepository_Call struct {
	*mock.Call
}

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

func (*GitGetBitbucketI_CreateRepository_Call) Return

func (*GitGetBitbucketI_CreateRepository_Call) Run

func (_c *GitGetBitbucketI_CreateRepository_Call) Run(run func(repoSha string, repository string, mirrorVisibilityMode string, sourceURL string, projectName string)) *GitGetBitbucketI_CreateRepository_Call

func (*GitGetBitbucketI_CreateRepository_Call) RunAndReturn

func (_c *GitGetBitbucketI_CreateRepository_Call) RunAndReturn(run func(repoSha string, repository string, mirrorVisibilityMode string, sourceURL string, projectName string) *bitbucket.Repository) *GitGetBitbucketI_CreateRepository_Call

type GitGetBitbucketI_Expecter

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

func (*GitGetBitbucketI_Expecter) CreateRepository

func (_e *GitGetBitbucketI_Expecter) CreateRepository(repoSha any, repository any, mirrorVisibilityMode any, sourceURL any, projectName any) *GitGetBitbucketI_CreateRepository_Call

CreateRepository is a helper method to define mock.On call

  • repoSha string
  • repository string
  • mirrorVisibilityMode string
  • sourceURL string
  • projectName string

func (*GitGetBitbucketI_Expecter) FetchOwnerRepos

func (_e *GitGetBitbucketI_Expecter) FetchOwnerRepos(repoSha any, owner any, bitbucketRole any) *GitGetBitbucketI_FetchOwnerRepos_Call

FetchOwnerRepos is a helper method to define mock.On call

  • repoSha string
  • owner string
  • bitbucketRole string

func (*GitGetBitbucketI_Expecter) Init

Init is a helper method to define mock.On call

func (*GitGetBitbucketI_Expecter) RepositoryExists

func (_e *GitGetBitbucketI_Expecter) RepositoryExists(repoSha any, owner any, repository any) *GitGetBitbucketI_RepositoryExists_Call

RepositoryExists is a helper method to define mock.On call

  • repoSha string
  • owner string
  • repository string

type GitGetBitbucketI_FetchOwnerRepos_Call

type GitGetBitbucketI_FetchOwnerRepos_Call struct {
	*mock.Call
}

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

func (*GitGetBitbucketI_FetchOwnerRepos_Call) Return

func (*GitGetBitbucketI_FetchOwnerRepos_Call) Run

func (_c *GitGetBitbucketI_FetchOwnerRepos_Call) Run(run func(repoSha string, owner string, bitbucketRole string)) *GitGetBitbucketI_FetchOwnerRepos_Call

func (*GitGetBitbucketI_FetchOwnerRepos_Call) RunAndReturn

func (_c *GitGetBitbucketI_FetchOwnerRepos_Call) RunAndReturn(run func(repoSha string, owner string, bitbucketRole string) []bitbucket.Repository) *GitGetBitbucketI_FetchOwnerRepos_Call

type GitGetBitbucketI_Init_Call

type GitGetBitbucketI_Init_Call struct {
	*mock.Call
}

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

func (*GitGetBitbucketI_Init_Call) Return

func (*GitGetBitbucketI_Init_Call) Run

func (*GitGetBitbucketI_Init_Call) RunAndReturn

func (_c *GitGetBitbucketI_Init_Call) RunAndReturn(run func() bool) *GitGetBitbucketI_Init_Call

type GitGetBitbucketI_RepositoryExists_Call

type GitGetBitbucketI_RepositoryExists_Call struct {
	*mock.Call
}

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

func (*GitGetBitbucketI_RepositoryExists_Call) Return

func (*GitGetBitbucketI_RepositoryExists_Call) Run

func (*GitGetBitbucketI_RepositoryExists_Call) RunAndReturn

func (_c *GitGetBitbucketI_RepositoryExists_Call) RunAndReturn(run func(repoSha string, owner string, repository string) bool) *GitGetBitbucketI_RepositoryExists_Call

Jump to

Keyboard shortcuts

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