Update git/client_test.go

Co-authored-by: Andy Feller <andyfeller@github.com>
This commit is contained in:
William Martin 2024-11-27 15:51:38 +01:00 committed by GitHub
parent 21a14a7d1a
commit 622e283d2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1494,6 +1494,7 @@ type commandResult struct {
type mockedCommands map[args]commandResult
// TestCommandMocking is an invoked test helper that emulates expected behavior for predefined shell commands, erroring when unexpected conditions are encountered.
func TestCommandMocking(t *testing.T) {
if os.Getenv("GH_WANT_HELPER_PROCESS_RICH") != "1" {
return