Documentation
¶
Index ¶
- Constants
- func CaptureStd(t *testing.T, std *os.File) (f *os.File, reset func())
- func CleanupRepo(t *testing.T, r *git.Repository)
- func InitRepoConf(t *testing.T, r *git.Repository)
- func NewFile(t *testing.T, r *git.Repository) *os.File
- func StageFile(t *testing.T, f *os.File, r *git.Repository)
- func StageNewFile(t *testing.T, r *git.Repository)
- func TestRepo(t *testing.T) (repo *git.Repository)
- func WriteGitHook(t *testing.T, hook string, content string)
- type Clock
Constants ¶
View Source
const ( GIT_USERNAME = "Alice" GIT_EMAIL = "alice@ecorp.com" )
Variables ¶
This section is empty.
Functions ¶
func CleanupRepo ¶
func CleanupRepo(t *testing.T, r *git.Repository)
CleanupRepo removes the repo directory recursively
func InitRepoConf ¶
func InitRepoConf(t *testing.T, r *git.Repository)
InitRepoConf set the repository initial configuration
func StageNewFile ¶
func StageNewFile(t *testing.T, r *git.Repository)
StageNewFile creates a new file and adds it to the index
Types ¶
Click to show internal directories.
Click to hide internal directories.