git

package
v2.3.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package git is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockUtilInterface

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

MockUtilInterface is a mock of UtilInterface interface

func NewMockUtilInterface

func NewMockUtilInterface(ctrl *gomock.Controller) *MockUtilInterface

NewMockUtilInterface creates a new mock instance

func (*MockUtilInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockUtilInterface) HeadCommitLogForPaths

func (m *MockUtilInterface) HeadCommitLogForPaths(args ...string) (string, error)

HeadCommitLogForPaths mocks base method

func (*MockUtilInterface) HeadHashForPaths

func (m *MockUtilInterface) HeadHashForPaths(args ...string) (string, error)

HeadHashForPaths mocks base method

type MockUtilInterfaceMockRecorder

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

MockUtilInterfaceMockRecorder is the mock recorder for MockUtilInterface

func (*MockUtilInterfaceMockRecorder) HeadCommitLogForPaths

func (mr *MockUtilInterfaceMockRecorder) HeadCommitLogForPaths(args ...interface{}) *gomock.Call

HeadCommitLogForPaths indicates an expected call of HeadCommitLogForPaths

func (*MockUtilInterfaceMockRecorder) HeadHashForPaths

func (mr *MockUtilInterfaceMockRecorder) HeadHashForPaths(args ...interface{}) *gomock.Call

HeadHashForPaths indicates an expected call of HeadHashForPaths

type Util

type Util struct {
	RepoPath string
}

Util allows for fetching information about a Git repository using Git CLI commands.

func (*Util) HeadCommitLogForPaths

func (g *Util) HeadCommitLogForPaths(args ...string) (string, error)

HeadCommitLog returns the log of the current HEAD commit, including a list of the files that were modified for the filtered directories

func (*Util) HeadHashForPaths

func (g *Util) HeadHashForPaths(args ...string) (string, error)

HeadHashForPaths returns the hash of the current HEAD commit for the filtered directories

type UtilInterface

type UtilInterface interface {
	HeadCommitLogForPaths(args ...string) (string, error)
	HeadHashForPaths(args ...string) (string, error)
}

UtilInterface allows for mocking out the functionality of GitUtil when testing the full process of an apply run.

Jump to

Keyboard shortcuts

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