testgit

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MainBranchName = "main"
	TestRepoDir    = "test-repo-covered"
)

Variables

This section is empty.

Functions

func AddCommit

func AddCommit(t *testing.T, commitMsg string)

AddCommit adds and commits changes in the git repository with the given commit message.

func CreateBranch

func CreateBranch(t *testing.T, branchName string)

CreateBranch creates a new branch and checks it out in the git repository.

func GetTestRepoPath

func GetTestRepoPath(t *testing.T) string

GetTestRepoPath returns the absolute path to the test git repository TestRepoDir.

func Init

func Init(t *testing.T)

Init initializes a git repository in the current working directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL