Versions in this module Expand all Collapse all v1 v1.1.0 Dec 26, 2025 v1.0.0 Dec 26, 2025 Changes in this version + func AddRemote(t *testing.T, repoDir, name, url string) + func BackgroundContext() context.Context + func CancelableContext(t *testing.T) (context.Context, context.CancelFunc) + func CommitFile(t *testing.T, repoDir, path, content, message string) + func CopyFixture(t *testing.T, fixturePath string) string + func CreateBranch(t *testing.T, repoDir, branch string) + func GetCurrentBranch(t *testing.T, repoDir string) string + func GetHeadSHA(t *testing.T, repoDir string) string + func GetShortSHA(t *testing.T, repoDir string) string + func LoadFixture(t *testing.T, path string) []byte + func LoadFixtureString(t *testing.T, path string) string + func LoadJSONFixture[T any](t *testing.T, path string) T + func MergeBranch(t *testing.T, repoDir, branch string) + func MustLoadFixture(path string) []byte + func SetupTestRepo(t *testing.T) string + func SetupTestRepoWithFiles(t *testing.T, files map[string]string) string + func Stash(t *testing.T, repoDir string) + func StashPop(t *testing.T, repoDir string) + func SwitchBranch(t *testing.T, repoDir, branch string) + func TODO() context.Context + func Tag(t *testing.T, repoDir, tag string) + func TempDir(t *testing.T) string + func TempFile(t *testing.T, name string, content []byte) string + func TempFileString(t *testing.T, name, content string) string + func TestContext(t *testing.T) context.Context + func TestContextWithDeadline(t *testing.T, deadline time.Time) context.Context + func TestContextWithTimeout(t *testing.T, timeout time.Duration) context.Context + func TestNameFromContext(ctx context.Context) string + func WithTestName(ctx context.Context, t *testing.T) context.Context + func WithValue(ctx context.Context, key, value any) context.Context + func WriteFixture(t *testing.T, path string, data []byte) + func WriteJSONFixture(t *testing.T, path string, v any)