Documentation ¶
Index ¶
- func SetGitMock(mock *MockGitClient)
- type MockGitClient
- func (m *MockGitClient) GetFirstCommit(path string) (git.Commit, error)
- func (m *MockGitClient) GetLastCommit(path string) (git.Commit, error)
- func (m *MockGitClient) GitExec(args ...string) (string, error)
- func (m *MockGitClient) GitExecInDir(dir string, args ...string) (string, error)
- func (m *MockGitClient) SetCommandResult(result string) *MockGitClient
- func (m *MockGitClient) SetError(err error) *MockGitClient
- func (m *MockGitClient) SetFirstCommit(commit git.Commit) *MockGitClient
- func (m *MockGitClient) SetLastCommit(commit git.Commit) *MockGitClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) 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
Click to show internal directories.
Click to hide internal directories.