test(809): do not export function that returns GoGit filesystem

Steve Moyer created

Change summary

repository/gogit_test.go    | 6 +++---
repository/gogit_testing.go | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)

Detailed changes

repository/gogit_test.go 🔗

@@ -12,13 +12,13 @@ import (
 func TestNewGoGitRepo(t *testing.T) {
 	// Plain
 	plainRepo := CreateGoGitTestRepo(t, false)
-	plainRoot := RepoDir(t, plainRepo)
+	plainRoot := goGitRepoDir(t, plainRepo)
 	require.NoError(t, plainRepo.Close())
 	plainGitDir := filepath.Join(plainRoot, ".git")
 
 	// Bare
 	bareRepo := CreateGoGitTestRepo(t, true)
-	bareRoot := RepoDir(t, bareRepo)
+	bareRoot := goGitRepoDir(t, bareRepo)
 	require.NoError(t, bareRepo.Close())
 	bareGitDir := bareRoot
 
@@ -62,7 +62,7 @@ func TestGoGitRepo(t *testing.T) {
 
 func TestGoGitRepo_Indexes(t *testing.T) {
 	repo := CreateGoGitTestRepo(t, false)
-	plainRoot := RepoDir(t, repo)
+	plainRoot := goGitRepoDir(t, repo)
 
 	// Can create indices
 	indexA, err := repo.GetBleveIndex("a")

repository/gogit_testing.go 🔗

@@ -70,7 +70,7 @@ func SetupGoGitReposAndRemote(t *testing.T) (repoA, repoB, remote TestedRepo) {
 	return repoA, repoB, remote
 }
 
-func RepoDir(t *testing.T, repo TestedRepo) string {
+func goGitRepoDir(t *testing.T, repo TestedRepo) string {
 	t.Helper()
 
 	dir := repo.GetLocalRemote()