Documentation ¶
Overview ¶
Package gittest provides testing utilities for git repositories.
Index ¶
Constants ¶
View Source
const ( DefaultBranch = "master" DefaultRemote = "origin" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommitOption ¶
type CommitOption func(*commitOpts)
func CommitWithExecutableFile ¶
func CommitWithExecutableFile(path string) CommitOption
type Repository ¶
type Repository interface { git.Repository Commit(t *testing.T, msg string, files map[string]string, opts ...CommitOption) Checkout(t *testing.T, branch string) CheckoutB(t *testing.T, branch string) Tag(t *testing.T, name string, msg string) Push(t *testing.T) Merge(t *testing.T, branch string) PackRefs(t *testing.T) ResetHard(t *testing.T, ref string) }
func ScaffoldGitRepository ¶
func ScaffoldGitRepository(t *testing.T) Repository
Click to show internal directories.
Click to hide internal directories.