mocks

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: MIT Imports: 2 Imported by: 0

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 interface{}, repository interface{}, mirrorVisibilityMode interface{}, sourceURL interface{}, projectName interface{}) *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 interface{}, owner interface{}, bitbucketRole interface{}) *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 interface{}, owner interface{}, repository interface{}) *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