mocks

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

type MockClient struct {
	mock.Mock
}

MockClient is a mock implementation of the Client interface

func NewMockClient

func NewMockClient() *MockClient

NewMockClient creates and returns a new instance of MockClient

func (*MockClient) Checkout

func (m *MockClient) Checkout(repo git.Repository, commit string) error

Checkout mocks the Checkout method of the Client interface

func (*MockClient) Clone

func (m *MockClient) Clone(url, dst string) (*git.Repository, error)

Clone mocks the Clone method of the Client interface

Jump to

Keyboard shortcuts

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