Documentation
¶
Index ¶
- type GitGetGithubI
- func (_mock *GitGetGithubI) CreateRepository(ctx context.Context, repositorySha string, repository string, ...) *github.Repository
- func (_m *GitGetGithubI) EXPECT() *GitGetGithubI_Expecter
- func (_mock *GitGetGithubI) FetchOwnerRepos(ctx context.Context, repoSha string, owner string, githubVisibility string, ...) []*github.Repository
- func (_mock *GitGetGithubI) Init() bool
- func (_mock *GitGetGithubI) RepositoryExists(ctx context.Context, repositorySha string, owner string, repository string) bool
- type GitGetGithubI_CreateRepository_Call
- func (_c *GitGetGithubI_CreateRepository_Call) Return(repository1 *github.Repository) *GitGetGithubI_CreateRepository_Call
- func (_c *GitGetGithubI_CreateRepository_Call) Run(run func(ctx context.Context, repositorySha string, repository string, ...)) *GitGetGithubI_CreateRepository_Call
- func (_c *GitGetGithubI_CreateRepository_Call) RunAndReturn(...) *GitGetGithubI_CreateRepository_Call
- type GitGetGithubI_Expecter
- func (_e *GitGetGithubI_Expecter) CreateRepository(ctx interface{}, repositorySha interface{}, repository interface{}, ...) *GitGetGithubI_CreateRepository_Call
- func (_e *GitGetGithubI_Expecter) FetchOwnerRepos(ctx interface{}, repoSha interface{}, owner interface{}, ...) *GitGetGithubI_FetchOwnerRepos_Call
- func (_e *GitGetGithubI_Expecter) Init() *GitGetGithubI_Init_Call
- func (_e *GitGetGithubI_Expecter) RepositoryExists(ctx interface{}, repositorySha interface{}, owner interface{}, ...) *GitGetGithubI_RepositoryExists_Call
- type GitGetGithubI_FetchOwnerRepos_Call
- func (_c *GitGetGithubI_FetchOwnerRepos_Call) Return(repositorys []*github.Repository) *GitGetGithubI_FetchOwnerRepos_Call
- func (_c *GitGetGithubI_FetchOwnerRepos_Call) Run(...) *GitGetGithubI_FetchOwnerRepos_Call
- func (_c *GitGetGithubI_FetchOwnerRepos_Call) RunAndReturn(...) *GitGetGithubI_FetchOwnerRepos_Call
- type GitGetGithubI_Init_Call
- type GitGetGithubI_RepositoryExists_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitGetGithubI ¶
GitGetGithubI is an autogenerated mock type for the GitGetGithubI type
func NewGitGetGithubI ¶
func NewGitGetGithubI(t interface {
mock.TestingT
Cleanup(func())
}) *GitGetGithubI
NewGitGetGithubI creates a new instance of GitGetGithubI. 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 (*GitGetGithubI) CreateRepository ¶
func (_mock *GitGetGithubI) CreateRepository(ctx context.Context, repositorySha string, repository string, mirrorVisibilityMode string, sourceURL string) *github.Repository
CreateRepository provides a mock function for the type GitGetGithubI
func (*GitGetGithubI) EXPECT ¶
func (_m *GitGetGithubI) EXPECT() *GitGetGithubI_Expecter
func (*GitGetGithubI) FetchOwnerRepos ¶
func (_mock *GitGetGithubI) FetchOwnerRepos(ctx context.Context, repoSha string, owner string, githubVisibility string, githubAffiliation string) []*github.Repository
FetchOwnerRepos provides a mock function for the type GitGetGithubI
func (*GitGetGithubI) Init ¶
func (_mock *GitGetGithubI) Init() bool
Init provides a mock function for the type GitGetGithubI
func (*GitGetGithubI) RepositoryExists ¶
func (_mock *GitGetGithubI) RepositoryExists(ctx context.Context, repositorySha string, owner string, repository string) bool
RepositoryExists provides a mock function for the type GitGetGithubI
type GitGetGithubI_CreateRepository_Call ¶
GitGetGithubI_CreateRepository_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateRepository'
func (*GitGetGithubI_CreateRepository_Call) Return ¶
func (_c *GitGetGithubI_CreateRepository_Call) Return(repository1 *github.Repository) *GitGetGithubI_CreateRepository_Call
func (*GitGetGithubI_CreateRepository_Call) Run ¶
func (_c *GitGetGithubI_CreateRepository_Call) Run(run func(ctx context.Context, repositorySha string, repository string, mirrorVisibilityMode string, sourceURL string)) *GitGetGithubI_CreateRepository_Call
func (*GitGetGithubI_CreateRepository_Call) RunAndReturn ¶
func (_c *GitGetGithubI_CreateRepository_Call) RunAndReturn(run func(ctx context.Context, repositorySha string, repository string, mirrorVisibilityMode string, sourceURL string) *github.Repository) *GitGetGithubI_CreateRepository_Call
type GitGetGithubI_Expecter ¶
type GitGetGithubI_Expecter struct {
// contains filtered or unexported fields
}
func (*GitGetGithubI_Expecter) CreateRepository ¶
func (_e *GitGetGithubI_Expecter) CreateRepository(ctx interface{}, repositorySha interface{}, repository interface{}, mirrorVisibilityMode interface{}, sourceURL interface{}) *GitGetGithubI_CreateRepository_Call
CreateRepository is a helper method to define mock.On call
- ctx context.Context
- repositorySha string
- repository string
- mirrorVisibilityMode string
- sourceURL string
func (*GitGetGithubI_Expecter) FetchOwnerRepos ¶
func (_e *GitGetGithubI_Expecter) FetchOwnerRepos(ctx interface{}, repoSha interface{}, owner interface{}, githubVisibility interface{}, githubAffiliation interface{}) *GitGetGithubI_FetchOwnerRepos_Call
FetchOwnerRepos is a helper method to define mock.On call
- ctx context.Context
- repoSha string
- owner string
- githubVisibility string
- githubAffiliation string
func (*GitGetGithubI_Expecter) Init ¶
func (_e *GitGetGithubI_Expecter) Init() *GitGetGithubI_Init_Call
Init is a helper method to define mock.On call
func (*GitGetGithubI_Expecter) RepositoryExists ¶
func (_e *GitGetGithubI_Expecter) RepositoryExists(ctx interface{}, repositorySha interface{}, owner interface{}, repository interface{}) *GitGetGithubI_RepositoryExists_Call
RepositoryExists is a helper method to define mock.On call
- ctx context.Context
- repositorySha string
- owner string
- repository string
type GitGetGithubI_FetchOwnerRepos_Call ¶
GitGetGithubI_FetchOwnerRepos_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FetchOwnerRepos'
func (*GitGetGithubI_FetchOwnerRepos_Call) Return ¶
func (_c *GitGetGithubI_FetchOwnerRepos_Call) Return(repositorys []*github.Repository) *GitGetGithubI_FetchOwnerRepos_Call
func (*GitGetGithubI_FetchOwnerRepos_Call) Run ¶
func (_c *GitGetGithubI_FetchOwnerRepos_Call) Run(run func(ctx context.Context, repoSha string, owner string, githubVisibility string, githubAffiliation string)) *GitGetGithubI_FetchOwnerRepos_Call
func (*GitGetGithubI_FetchOwnerRepos_Call) RunAndReturn ¶
func (_c *GitGetGithubI_FetchOwnerRepos_Call) RunAndReturn(run func(ctx context.Context, repoSha string, owner string, githubVisibility string, githubAffiliation string) []*github.Repository) *GitGetGithubI_FetchOwnerRepos_Call
type GitGetGithubI_Init_Call ¶
GitGetGithubI_Init_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Init'
func (*GitGetGithubI_Init_Call) Return ¶
func (_c *GitGetGithubI_Init_Call) Return(b bool) *GitGetGithubI_Init_Call
func (*GitGetGithubI_Init_Call) Run ¶
func (_c *GitGetGithubI_Init_Call) Run(run func()) *GitGetGithubI_Init_Call
func (*GitGetGithubI_Init_Call) RunAndReturn ¶
func (_c *GitGetGithubI_Init_Call) RunAndReturn(run func() bool) *GitGetGithubI_Init_Call
type GitGetGithubI_RepositoryExists_Call ¶
GitGetGithubI_RepositoryExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RepositoryExists'
func (*GitGetGithubI_RepositoryExists_Call) Return ¶
func (_c *GitGetGithubI_RepositoryExists_Call) Return(b bool) *GitGetGithubI_RepositoryExists_Call
func (*GitGetGithubI_RepositoryExists_Call) Run ¶
func (_c *GitGetGithubI_RepositoryExists_Call) Run(run func(ctx context.Context, repositorySha string, owner string, repository string)) *GitGetGithubI_RepositoryExists_Call
func (*GitGetGithubI_RepositoryExists_Call) RunAndReturn ¶
func (_c *GitGetGithubI_RepositoryExists_Call) RunAndReturn(run func(ctx context.Context, repositorySha string, owner string, repository string) bool) *GitGetGithubI_RepositoryExists_Call