Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v3.0.22 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RepoClientFactory

type RepoClientFactory struct {
	mock.Mock
}

RepoClientFactory is an autogenerated mock type for the RepoClientFactory type

func NewRepoClientFactory

func NewRepoClientFactory(t interface {
	mock.TestingT
	Cleanup(func())
}) *RepoClientFactory

NewRepoClientFactory creates a new instance of RepoClientFactory. 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 (*RepoClientFactory) NewClient

func (_m *RepoClientFactory) NewClient(repo *v1alpha1.Repository, rootPath string) (git.Client, error)

NewClient provides a mock function with given fields: repo, rootPath

Jump to

Keyboard shortcuts

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