testutil

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chdir

func Chdir(t *testing.T, dir string)

Chdir changes the current working directory to dir and reverts it when the test ends.

func SetupGitRepo

func SetupGitRepo(t *testing.T) (string, func())

SetupGitRepo creates a temporary git repository and changes the current working directory to it. It returns the path to the repo and a cleanup function.

func SetupRemoteGitRepo

func SetupRemoteGitRepo(t *testing.T) string

SetupRemoteGitRepo creates a bare git repository to serve as a remote. It returns the path to the bare repo.

Types

This section is empty.

Jump to

Keyboard shortcuts

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