Skip to content

Commit ebb8ece

Browse files
committed
main_test.gitCommand(): label it a test helper
1 parent cd9e0c3 commit ebb8ece

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

git_sizer_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ func TestExec(t *testing.T) {
2626
}
2727

2828
func gitCommand(t *testing.T, repo *git.Repository, args ...string) *exec.Cmd {
29+
t.Helper()
30+
2931
cmd := exec.Command("git", args...)
3032
cmd.Env = append(os.Environ(), "GIT_DIR="+repo.Path())
3133
return cmd

0 commit comments

Comments
 (0)