testutil

package
v0.0.62 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBareRemoteRepo added in v0.0.49

func CreateBareRemoteRepo(t testing.TB) string

CreateBareRemoteRepo creates an empty bare repository that can be used as a push target.

func CreateRemoteRepo

func CreateRemoteRepo(t testing.TB, branchName string) string

CreateRemoteRepo creates a fake remote repository with a default branch and an initial commit.

func CreateRemoteRepoAt added in v0.0.49

func CreateRemoteRepoAt(t testing.TB, remoteRepoPath, tempRepoPath, branchName string) string

CreateRemoteRepoAt creates a fake remote repository with a default branch and an initial commit using the provided paths for the bare remote and temporary working repository.

func SetupPushableTestRepo added in v0.0.49

func SetupPushableTestRepo(t testing.TB) (*git.Repository, error)

SetupPushableTestRepo creates a local repository with an empty bare origin remote. This is cheaper than SetupTestRepo when tests only need a configured remote for push.

func SetupTestFile

func SetupTestFile(t testing.TB) error

func SetupTestRepo

func SetupTestRepo(t testing.TB) (*git.Repository, error)

func TBErrorIfNotNil

func TBErrorIfNotNil(t testing.TB, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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