Documentation
¶
Index ¶
- type GitGetBitbucketI
- func (_mock *GitGetBitbucketI) CreateRepository(repoSha string, repository string, mirrorVisibilityMode string, ...) *bitbucket.Repository
- func (_m *GitGetBitbucketI) EXPECT() *GitGetBitbucketI_Expecter
- func (_mock *GitGetBitbucketI) FetchOwnerRepos(repoSha string, owner string, bitbucketRole string) []bitbucket.Repository
- func (_mock *GitGetBitbucketI) Init() bool
- func (_mock *GitGetBitbucketI) RepositoryExists(repoSha string, owner string, repository string) bool
- type GitGetBitbucketI_CreateRepository_Call
- func (_c *GitGetBitbucketI_CreateRepository_Call) Return(repository1 *bitbucket.Repository) *GitGetBitbucketI_CreateRepository_Call
- func (_c *GitGetBitbucketI_CreateRepository_Call) Run(run func(repoSha string, repository string, mirrorVisibilityMode string, ...)) *GitGetBitbucketI_CreateRepository_Call
- func (_c *GitGetBitbucketI_CreateRepository_Call) RunAndReturn(...) *GitGetBitbucketI_CreateRepository_Call
- type GitGetBitbucketI_Expecter
- func (_e *GitGetBitbucketI_Expecter) CreateRepository(repoSha interface{}, repository interface{}, mirrorVisibilityMode interface{}, ...) *GitGetBitbucketI_CreateRepository_Call
- func (_e *GitGetBitbucketI_Expecter) FetchOwnerRepos(repoSha interface{}, owner interface{}, bitbucketRole interface{}) *GitGetBitbucketI_FetchOwnerRepos_Call
- func (_e *GitGetBitbucketI_Expecter) Init() *GitGetBitbucketI_Init_Call
- func (_e *GitGetBitbucketI_Expecter) RepositoryExists(repoSha interface{}, owner interface{}, repository interface{}) *GitGetBitbucketI_RepositoryExists_Call
- type GitGetBitbucketI_FetchOwnerRepos_Call
- func (_c *GitGetBitbucketI_FetchOwnerRepos_Call) Return(repositorys []bitbucket.Repository) *GitGetBitbucketI_FetchOwnerRepos_Call
- func (_c *GitGetBitbucketI_FetchOwnerRepos_Call) Run(run func(repoSha string, owner string, bitbucketRole string)) *GitGetBitbucketI_FetchOwnerRepos_Call
- func (_c *GitGetBitbucketI_FetchOwnerRepos_Call) RunAndReturn(...) *GitGetBitbucketI_FetchOwnerRepos_Call
- type GitGetBitbucketI_Init_Call
- type GitGetBitbucketI_RepositoryExists_Call
- func (_c *GitGetBitbucketI_RepositoryExists_Call) Return(b bool) *GitGetBitbucketI_RepositoryExists_Call
- func (_c *GitGetBitbucketI_RepositoryExists_Call) Run(run func(repoSha string, owner string, repository string)) *GitGetBitbucketI_RepositoryExists_Call
- func (_c *GitGetBitbucketI_RepositoryExists_Call) RunAndReturn(run func(repoSha string, owner string, repository string) bool) *GitGetBitbucketI_RepositoryExists_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitGetBitbucketI ¶
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 (_m *GitGetBitbucketI) EXPECT() *GitGetBitbucketI_Expecter
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 ¶
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 (_c *GitGetBitbucketI_CreateRepository_Call) Return(repository1 *bitbucket.Repository) *GitGetBitbucketI_CreateRepository_Call
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 ¶
func (_e *GitGetBitbucketI_Expecter) Init() *GitGetBitbucketI_Init_Call
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 ¶
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 (_c *GitGetBitbucketI_FetchOwnerRepos_Call) Return(repositorys []bitbucket.Repository) *GitGetBitbucketI_FetchOwnerRepos_Call
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 ¶
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 (_c *GitGetBitbucketI_Init_Call) Return(b bool) *GitGetBitbucketI_Init_Call
func (*GitGetBitbucketI_Init_Call) Run ¶
func (_c *GitGetBitbucketI_Init_Call) Run(run func()) *GitGetBitbucketI_Init_Call
func (*GitGetBitbucketI_Init_Call) RunAndReturn ¶
func (_c *GitGetBitbucketI_Init_Call) RunAndReturn(run func() bool) *GitGetBitbucketI_Init_Call
type GitGetBitbucketI_RepositoryExists_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 (_c *GitGetBitbucketI_RepositoryExists_Call) Return(b bool) *GitGetBitbucketI_RepositoryExists_Call
func (*GitGetBitbucketI_RepositoryExists_Call) Run ¶
func (_c *GitGetBitbucketI_RepositoryExists_Call) Run(run func(repoSha string, owner string, repository string)) *GitGetBitbucketI_RepositoryExists_Call
func (*GitGetBitbucketI_RepositoryExists_Call) RunAndReturn ¶
func (_c *GitGetBitbucketI_RepositoryExists_Call) RunAndReturn(run func(repoSha string, owner string, repository string) bool) *GitGetBitbucketI_RepositoryExists_Call