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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitGetGitlabI

type GitGetGitlabI struct {
	mock.Mock
}

GitGetGitlabI is an autogenerated mock type for the GitGetGitlabI type

func NewGitGetGitlabI added in v0.0.17

func NewGitGetGitlabI(t interface {
	mock.TestingT
	Cleanup(func())
}) *GitGetGitlabI

NewGitGetGitlabI creates a new instance of GitGetGitlabI. 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 (*GitGetGitlabI) CreateProject

func (_mock *GitGetGitlabI) CreateProject(repositorySha string, baseUrl string, projectName string, namespaceID int64, mirrorVisibilityMode string, sourceURL string) *gitlab.Project

CreateProject provides a mock function for the type GitGetGitlabI

func (*GitGetGitlabI) EXPECT added in v0.0.32

func (_m *GitGetGitlabI) EXPECT() *GitGetGitlabI_Expecter

func (*GitGetGitlabI) FetchOwnerRepos

func (_mock *GitGetGitlabI) FetchOwnerRepos(repositorySha string, baseURL string, groupName string, gitlabOwned bool, gitlabVisibility string, gitlabMinAccessLevel string) []*gitlab.Project

FetchOwnerRepos provides a mock function for the type GitGetGitlabI

func (*GitGetGitlabI) GetProjectNamespace

func (_mock *GitGetGitlabI) GetProjectNamespace(repositorySha string, baseUrl string, projectNameFullPath string) (*gitlab.Namespace, string)

GetProjectNamespace provides a mock function for the type GitGetGitlabI

func (*GitGetGitlabI) Init

func (_mock *GitGetGitlabI) Init() bool

Init provides a mock function for the type GitGetGitlabI

func (*GitGetGitlabI) ProjectExists

func (_mock *GitGetGitlabI) ProjectExists(repositorySha string, baseUrl string, projectName string) bool

ProjectExists provides a mock function for the type GitGetGitlabI

type GitGetGitlabI_CreateProject_Call added in v0.0.32

type GitGetGitlabI_CreateProject_Call struct {
	*mock.Call
}

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

func (*GitGetGitlabI_CreateProject_Call) Return added in v0.0.32

func (_c *GitGetGitlabI_CreateProject_Call) Return(project *gitlab.Project) *GitGetGitlabI_CreateProject_Call

func (*GitGetGitlabI_CreateProject_Call) Run added in v0.0.32

func (_c *GitGetGitlabI_CreateProject_Call) Run(run func(repositorySha string, baseUrl string, projectName string, namespaceID int64, mirrorVisibilityMode string, sourceURL string)) *GitGetGitlabI_CreateProject_Call

func (*GitGetGitlabI_CreateProject_Call) RunAndReturn added in v0.0.32

func (_c *GitGetGitlabI_CreateProject_Call) RunAndReturn(run func(repositorySha string, baseUrl string, projectName string, namespaceID int64, mirrorVisibilityMode string, sourceURL string) *gitlab.Project) *GitGetGitlabI_CreateProject_Call

type GitGetGitlabI_Expecter added in v0.0.32

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

func (*GitGetGitlabI_Expecter) CreateProject added in v0.0.32

func (_e *GitGetGitlabI_Expecter) CreateProject(repositorySha interface{}, baseUrl interface{}, projectName interface{}, namespaceID interface{}, mirrorVisibilityMode interface{}, sourceURL interface{}) *GitGetGitlabI_CreateProject_Call

CreateProject is a helper method to define mock.On call

  • repositorySha string
  • baseUrl string
  • projectName string
  • namespaceID int64
  • mirrorVisibilityMode string
  • sourceURL string

func (*GitGetGitlabI_Expecter) FetchOwnerRepos added in v0.0.32

func (_e *GitGetGitlabI_Expecter) FetchOwnerRepos(repositorySha interface{}, baseURL interface{}, groupName interface{}, gitlabOwned interface{}, gitlabVisibility interface{}, gitlabMinAccessLevel interface{}) *GitGetGitlabI_FetchOwnerRepos_Call

FetchOwnerRepos is a helper method to define mock.On call

  • repositorySha string
  • baseURL string
  • groupName string
  • gitlabOwned bool
  • gitlabVisibility string
  • gitlabMinAccessLevel string

func (*GitGetGitlabI_Expecter) GetProjectNamespace added in v0.0.32

func (_e *GitGetGitlabI_Expecter) GetProjectNamespace(repositorySha interface{}, baseUrl interface{}, projectNameFullPath interface{}) *GitGetGitlabI_GetProjectNamespace_Call

GetProjectNamespace is a helper method to define mock.On call

  • repositorySha string
  • baseUrl string
  • projectNameFullPath string

func (*GitGetGitlabI_Expecter) Init added in v0.0.32

Init is a helper method to define mock.On call

func (*GitGetGitlabI_Expecter) ProjectExists added in v0.0.32

func (_e *GitGetGitlabI_Expecter) ProjectExists(repositorySha interface{}, baseUrl interface{}, projectName interface{}) *GitGetGitlabI_ProjectExists_Call

ProjectExists is a helper method to define mock.On call

  • repositorySha string
  • baseUrl string
  • projectName string

type GitGetGitlabI_FetchOwnerRepos_Call added in v0.0.32

type GitGetGitlabI_FetchOwnerRepos_Call struct {
	*mock.Call
}

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

func (*GitGetGitlabI_FetchOwnerRepos_Call) Return added in v0.0.32

func (_c *GitGetGitlabI_FetchOwnerRepos_Call) Return(projects []*gitlab.Project) *GitGetGitlabI_FetchOwnerRepos_Call

func (*GitGetGitlabI_FetchOwnerRepos_Call) Run added in v0.0.32

func (_c *GitGetGitlabI_FetchOwnerRepos_Call) Run(run func(repositorySha string, baseURL string, groupName string, gitlabOwned bool, gitlabVisibility string, gitlabMinAccessLevel string)) *GitGetGitlabI_FetchOwnerRepos_Call

func (*GitGetGitlabI_FetchOwnerRepos_Call) RunAndReturn added in v0.0.32

func (_c *GitGetGitlabI_FetchOwnerRepos_Call) RunAndReturn(run func(repositorySha string, baseURL string, groupName string, gitlabOwned bool, gitlabVisibility string, gitlabMinAccessLevel string) []*gitlab.Project) *GitGetGitlabI_FetchOwnerRepos_Call

type GitGetGitlabI_GetProjectNamespace_Call added in v0.0.32

type GitGetGitlabI_GetProjectNamespace_Call struct {
	*mock.Call
}

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

func (*GitGetGitlabI_GetProjectNamespace_Call) Return added in v0.0.32

func (_c *GitGetGitlabI_GetProjectNamespace_Call) Return(namespace *gitlab.Namespace, s string) *GitGetGitlabI_GetProjectNamespace_Call

func (*GitGetGitlabI_GetProjectNamespace_Call) Run added in v0.0.32

func (_c *GitGetGitlabI_GetProjectNamespace_Call) Run(run func(repositorySha string, baseUrl string, projectNameFullPath string)) *GitGetGitlabI_GetProjectNamespace_Call

func (*GitGetGitlabI_GetProjectNamespace_Call) RunAndReturn added in v0.0.32

func (_c *GitGetGitlabI_GetProjectNamespace_Call) RunAndReturn(run func(repositorySha string, baseUrl string, projectNameFullPath string) (*gitlab.Namespace, string)) *GitGetGitlabI_GetProjectNamespace_Call

type GitGetGitlabI_Init_Call added in v0.0.32

type GitGetGitlabI_Init_Call struct {
	*mock.Call
}

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

func (*GitGetGitlabI_Init_Call) Return added in v0.0.32

func (*GitGetGitlabI_Init_Call) Run added in v0.0.32

func (_c *GitGetGitlabI_Init_Call) Run(run func()) *GitGetGitlabI_Init_Call

func (*GitGetGitlabI_Init_Call) RunAndReturn added in v0.0.32

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

type GitGetGitlabI_ProjectExists_Call added in v0.0.32

type GitGetGitlabI_ProjectExists_Call struct {
	*mock.Call
}

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

func (*GitGetGitlabI_ProjectExists_Call) Return added in v0.0.32

func (*GitGetGitlabI_ProjectExists_Call) Run added in v0.0.32

func (_c *GitGetGitlabI_ProjectExists_Call) Run(run func(repositorySha string, baseUrl string, projectName string)) *GitGetGitlabI_ProjectExists_Call

func (*GitGetGitlabI_ProjectExists_Call) RunAndReturn added in v0.0.32

func (_c *GitGetGitlabI_ProjectExists_Call) RunAndReturn(run func(repositorySha string, baseUrl string, projectName string) bool) *GitGetGitlabI_ProjectExists_Call

type GitGetGitlabI_appendGroupsProjects_Call added in v0.0.32

type GitGetGitlabI_appendGroupsProjects_Call struct {
	*mock.Call
}

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

func (*GitGetGitlabI_appendGroupsProjects_Call) Return added in v0.0.32

func (*GitGetGitlabI_appendGroupsProjects_Call) Run added in v0.0.32

func (_c *GitGetGitlabI_appendGroupsProjects_Call) Run(run func(repoSha string, git *gitlab.Client, groupID int64, groupName string, glRepoList []*gitlab.Project, gitlabOwned bool, gitlabVisibility string)) *GitGetGitlabI_appendGroupsProjects_Call

func (*GitGetGitlabI_appendGroupsProjects_Call) RunAndReturn added in v0.0.32

func (_c *GitGetGitlabI_appendGroupsProjects_Call) RunAndReturn(run func(repoSha string, git *gitlab.Client, groupID int64, groupName string, glRepoList []*gitlab.Project, gitlabOwned bool, gitlabVisibility string) []*gitlab.Project) *GitGetGitlabI_appendGroupsProjects_Call

type GitGetGitlabI_getGroupID_Call added in v0.0.32

type GitGetGitlabI_getGroupID_Call struct {
	*mock.Call
}

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

func (*GitGetGitlabI_getGroupID_Call) Return added in v0.0.32

func (*GitGetGitlabI_getGroupID_Call) Run added in v0.0.32

func (_c *GitGetGitlabI_getGroupID_Call) Run(run func(repoSha string, git *gitlab.Client, groupName string)) *GitGetGitlabI_getGroupID_Call

func (*GitGetGitlabI_getGroupID_Call) RunAndReturn added in v0.0.32

func (_c *GitGetGitlabI_getGroupID_Call) RunAndReturn(run func(repoSha string, git *gitlab.Client, groupName string) (int64, string, error)) *GitGetGitlabI_getGroupID_Call

type GitGetGitlabI_gitlabAuth_Call added in v0.0.32

type GitGetGitlabI_gitlabAuth_Call struct {
	*mock.Call
}

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

func (*GitGetGitlabI_gitlabAuth_Call) Return added in v0.0.32

func (*GitGetGitlabI_gitlabAuth_Call) Run added in v0.0.32

func (_c *GitGetGitlabI_gitlabAuth_Call) Run(run func(repositorySha string, baseUrl string)) *GitGetGitlabI_gitlabAuth_Call

func (*GitGetGitlabI_gitlabAuth_Call) RunAndReturn added in v0.0.32

func (_c *GitGetGitlabI_gitlabAuth_Call) RunAndReturn(run func(repositorySha string, baseUrl string) bool) *GitGetGitlabI_gitlabAuth_Call

type GitGetGitlabI_processSubgroups_Call added in v0.0.32

type GitGetGitlabI_processSubgroups_Call struct {
	*mock.Call
}

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

func (*GitGetGitlabI_processSubgroups_Call) Return added in v0.0.32

func (_c *GitGetGitlabI_processSubgroups_Call) Return(projects []*gitlab.Project) *GitGetGitlabI_processSubgroups_Call

func (*GitGetGitlabI_processSubgroups_Call) Run added in v0.0.32

func (_c *GitGetGitlabI_processSubgroups_Call) Run(run func(repoSha string, git *gitlab.Client, groupID int64, groupName string, glRepoList []*gitlab.Project, gitlabOwned bool, gitlabVisibility string, gitlabMinAccessLevel string)) *GitGetGitlabI_processSubgroups_Call

func (*GitGetGitlabI_processSubgroups_Call) RunAndReturn added in v0.0.32

func (_c *GitGetGitlabI_processSubgroups_Call) RunAndReturn(run func(repoSha string, git *gitlab.Client, groupID int64, groupName string, glRepoList []*gitlab.Project, gitlabOwned bool, gitlabVisibility string, gitlabMinAccessLevel string) []*gitlab.Project) *GitGetGitlabI_processSubgroups_Call

Jump to

Keyboard shortcuts

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