Documentation
¶
Index ¶
- type OpenCloner
- type RepositoryService
- func (_m *RepositoryService) ForkRepository(ctx context.Context, repoName string) error
- func (_m *RepositoryService) GetRepository(ctx context.Context, owner string, repoName string) (*v61github.Repository, error)
- func (_m *RepositoryService) GetUserRepositoryFork(ctx context.Context, owner string, repoName string) (*v61github.Repository, error)
- func (_m *RepositoryService) ListRepositoryForks(ctx context.Context, repoName string) ([]*v61github.Repository, error)
- func (_m *RepositoryService) RenameRepository(ctx context.Context, owner string, name string, newName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenCloner ¶
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) Open ¶
func (_m *OpenCloner) Open(path string) (*v5.Repository, error)
Open provides a mock function with given fields: path
type RepositoryService ¶
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