Documentation
¶
Index ¶
Constants ¶
View Source
const Command = "git"
View Source
const DefaultAbbreviation = 7
View Source
const DefaultCommandTimeout = 15 * time.Second
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DescribeOpts ¶
func (*DescribeOpts) Args ¶
func (o *DescribeOpts) Args() []string
type Git ¶
type Git interface {
Describe(opts *DescribeOpts) (string, error)
Log(query string, opts *LogOpts) ([]byte, error)
}
func NewWithCommanderFactory ¶
type MockGit ¶
MockGit is an autogenerated mock type for the Git type
func NewMockGit ¶ added in v0.7.0
NewMockGit creates a new instance of MockGit. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
Click to show internal directories.
Click to hide internal directories.