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

deploycommittest

package
v0.54.0 Latest Latest
Warning

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

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

Documentation

Overview

Package deploycommittest makes git repositories for tests of deploys that report their source commit.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Git

func Git(t *testing.T, root string, args ...string) string

Git runs git in root and returns its trimmed output.

func Repository

func Repository(t *testing.T, root, remote string) string

Repository makes root a git repository whose origin is remote, with one commit that holds every file in root that git does not ignore, and returns that commit's ID. git runs with none of the machine's own configuration, for the rest of the test too. The test is skipped when git is not installed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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