Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2021-05-19 11:46:03 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2021-05-19 18:40:29 +0300
commit1094a54dd669f6b3039428027b6e760fbc9428db (patch)
tree829f0c8bdd5d44ec6adc02db6d345a4109cecd84
parent0f640a20ff16076ac7ea830bdafa38022cc9540f (diff)
gittest: Add missing `t.Helper()` call in `Exec()`
The `Exec()` test helper function is missing a call to `t.Helper()`. Add it to make test failures more helpful.
-rw-r--r--internal/git/gittest/command.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/git/gittest/command.go b/internal/git/gittest/command.go
index f658b90cd..e3d98bfcc 100644
--- a/internal/git/gittest/command.go
+++ b/internal/git/gittest/command.go
@@ -12,6 +12,8 @@ import (
// Exec runs a git command and returns the standard output, or fails.
func Exec(t testing.TB, cfg config.Cfg, args ...string) []byte {
+ t.Helper()
+
return run(t, nil, cfg, args...)
}