mock

package
v0.0.0-...-955c50f Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock defines the struct and its corresponding methods for mocking handler.IGitHandler

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHandlerMock

type GitHandlerMock struct {
	mock.Mock
}

func (*GitHandlerMock) CloneRepository

func (mock *GitHandlerMock) CloneRepository(log log.T, authMethod transport.AuthMethod, destPath string) (repository *gogit.Repository, err error)

func (*GitHandlerMock) GetAuthMethod

func (mock *GitHandlerMock) GetAuthMethod(log log.T) (transport.AuthMethod, error)

func (*GitHandlerMock) PerformCheckout

func (mock *GitHandlerMock) PerformCheckout(repository core.IGitRepository) error

func (*GitHandlerMock) Validate

func (mock *GitHandlerMock) Validate() (bool, error)

Jump to

Keyboard shortcuts

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