mocks

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 (_m *GitGetGitlabI) CreateProject(repositorySha string, baseUrl string, projectName string, namespaceID int, mirrorVisibilityMode string, sourceURL string) *gitlab.Project

CreateProject provides a mock function with given fields: repositorySha, baseUrl, projectName, namespaceID, mirrorVisibilityMode, sourceURL

func (*GitGetGitlabI) FetchOwnerRepos

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

FetchOwnerRepos provides a mock function with given fields: repositorySha, baseURL, groupName, gitlabOwned, gitlabVisibility, gitlabMinAccessLevel

func (*GitGetGitlabI) GetProjectNamespace

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

GetProjectNamespace provides a mock function with given fields: repositorySha, baseUrl, projectNameFullPath

func (*GitGetGitlabI) Init

func (_m *GitGetGitlabI) Init() bool

Init provides a mock function with given fields:

func (*GitGetGitlabI) ProjectExists

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

ProjectExists provides a mock function with given fields: repositorySha, baseUrl, projectName

Jump to

Keyboard shortcuts

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