Help us shape the future of Go! Take the 2026 Go Developer Survey

gittestutil

package
v0.38.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GitAdd

func GitAdd(c *gitutil.GitCLI, tb testing.TB, files ...string)

func GitCheckoutBranch

func GitCheckoutBranch(c *gitutil.GitCLI, tb testing.TB, name string)

func GitCommit

func GitCommit(c *gitutil.GitCLI, tb testing.TB, msg string)

func GitInit

func GitInit(c *gitutil.GitCLI, tb testing.TB)

func GitServeHTTP

func GitServeHTTP(c *gitutil.GitCLI, t testing.TB, opts ...GitServeOpt) (url string)

func GitSetMainUpstream

func GitSetMainUpstream(c *gitutil.GitCLI, tb testing.TB, remote, target string)

func GitSetRemote

func GitSetRemote(c *gitutil.GitCLI, tb testing.TB, name string, url string)

func GitTag

func GitTag(c *gitutil.GitCLI, tb testing.TB, tag string)

func GitTagAnnotated added in v0.31.0

func GitTagAnnotated(c *gitutil.GitCLI, tb testing.TB, tag, message string)

func IsAmbiguousArgument

func IsAmbiguousArgument(err error) bool

func Mktmp

func Mktmp(tb testing.TB) string

Types

type GitServeOpt

type GitServeOpt func(*gitServe)

func WithAccessToken

func WithAccessToken(token string) GitServeOpt

Jump to

Keyboard shortcuts

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