Documentation
¶
Overview ¶
Package testgit provides functions and types for working with Git repositories in the context of testing within the uncloak application.
Index ¶
Constants ¶
View Source
const ( // MainBranchName represents the name of the main branch in the git // repository. MainBranchName = "main" // TestRepoDir represents the directory name of the test git repository. TestRepoDir = "test-repo-covered" )
Variables ¶
This section is empty.
Functions ¶
func AddCommit ¶
AddCommit adds and commits changes in the git repository with the given commit message.
func CreateBranch ¶
CreateBranch creates a new branch and checks it out in the git repository.
func GetTestRepoPath ¶
GetTestRepoPath returns the absolute path to the test git repository TestRepoDir.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.