mocks

package
v0.0.36 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitGetGithubI

type GitGetGithubI struct {
	mock.Mock
}

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

type GitGetGithubI_CreateRepository_Call struct {
	*mock.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 (*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

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

type GitGetGithubI_FetchOwnerRepos_Call struct {
	*mock.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 (*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

type GitGetGithubI_Init_Call struct {
	*mock.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 (*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

type GitGetGithubI_RepositoryExists_Call struct {
	*mock.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 (*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

Jump to

Keyboard shortcuts

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