mocks

package
v0.77.0-environments Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetGitMock

func SetGitMock(mock *MockGitClient)

Set the global git client to the mock

Types

type MockGitClient

type MockGitClient struct {
	// contains filtered or unexported fields
}

func (*MockGitClient) GetFirstCommit

func (m *MockGitClient) GetFirstCommit(path string) (git.Commit, error)

Implementations

func (*MockGitClient) GetLastCommit

func (m *MockGitClient) GetLastCommit(path string) (git.Commit, error)

func (*MockGitClient) GitExec

func (m *MockGitClient) GitExec(args ...string) (string, error)

func (*MockGitClient) GitExecInDir

func (m *MockGitClient) GitExecInDir(dir string, args ...string) (string, error)

func (*MockGitClient) SetCommandResult

func (m *MockGitClient) SetCommandResult(result string) *MockGitClient

func (*MockGitClient) SetError

func (m *MockGitClient) SetError(err error) *MockGitClient

func (*MockGitClient) SetFirstCommit

func (m *MockGitClient) SetFirstCommit(commit git.Commit) *MockGitClient

Setters

func (*MockGitClient) SetLastCommit

func (m *MockGitClient) SetLastCommit(commit git.Commit) *MockGitClient

Jump to

Keyboard shortcuts

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