gittest

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package gittest shields tests that run Git from the developer's Git configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Isolate

func Isolate(t testing.TB)

Isolate makes the Git commands of test t read a fresh global configuration and no system one, through the environment, so that settings such as commit signing cannot fail them. It skips t when Git is not installed. Like t.Setenv, it cannot be used in parallel tests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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