mocks

package
v0.0.0-...-f2bbad7 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2026 License: Apache-2.0 Imports: 4 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 OpenCloner

type OpenCloner struct {
	mock.Mock
}

OpenCloner is an autogenerated mock type for the OpenCloner type

func NewOpenCloner

func NewOpenCloner(t interface {
	mock.TestingT
	Cleanup(func())
}) *OpenCloner

NewOpenCloner creates a new instance of OpenCloner. 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 (*OpenCloner) Clone

func (_m *OpenCloner) Clone(ctx context.Context, url string, dest string) error

Clone provides a mock function with given fields: ctx, url, dest

func (*OpenCloner) Open

func (_m *OpenCloner) Open(path string) (*v5.Repository, error)

Open provides a mock function with given fields: path

type RepositoryService

type RepositoryService struct {
	mock.Mock
}

RepositoryService is an autogenerated mock type for the RepositoryService type

func NewRepositoryService

func NewRepositoryService(t interface {
	mock.TestingT
	Cleanup(func())
}) *RepositoryService

NewRepositoryService creates a new instance of RepositoryService. 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 (*RepositoryService) ForkRepository

func (_m *RepositoryService) ForkRepository(ctx context.Context, repoName string) error

ForkRepository provides a mock function with given fields: ctx, repoName

func (*RepositoryService) GetRepository

func (_m *RepositoryService) GetRepository(ctx context.Context, owner string, repoName string) (*v61github.Repository, error)

GetRepository provides a mock function with given fields: ctx, owner, repoName

func (*RepositoryService) GetUserRepositoryFork

func (_m *RepositoryService) GetUserRepositoryFork(ctx context.Context, owner string, repoName string) (*v61github.Repository, error)

GetUserRepositoryFork provides a mock function with given fields: ctx, owner, repoName

func (*RepositoryService) ListRepositoryForks

func (_m *RepositoryService) ListRepositoryForks(ctx context.Context, repoName string) ([]*v61github.Repository, error)

ListRepositoryForks provides a mock function with given fields: ctx, repoName

func (*RepositoryService) RenameRepository

func (_m *RepositoryService) RenameRepository(ctx context.Context, owner string, name string, newName string) error

RenameRepository provides a mock function with given fields: ctx, owner, name, newName

Jump to

Keyboard shortcuts

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