diff options
author | Steve Moyer <smoyer1@selesy.com> | 2022-06-22 10:46:52 -0400 |
---|---|---|
committer | Steve Moyer <smoyer1@selesy.com> | 2022-06-22 10:46:52 -0400 |
commit | 323dd0e293fb965743269fe52c8335b3d7a7bb94 (patch) | |
tree | 2de91e4b74e0d2c272b1191785d6e308c3adbf60 /repository | |
parent | 6fc6a0f0ab8ce8c7b6ec510d1d7557a6e7cd6835 (diff) | |
download | git-bug-323dd0e293fb965743269fe52c8335b3d7a7bb94.tar.gz |
test(809): do not export function that returns GoGit filesystem
Diffstat (limited to 'repository')
-rw-r--r-- | repository/gogit_test.go | 6 | ||||
-rw-r--r-- | repository/gogit_testing.go | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/repository/gogit_test.go b/repository/gogit_test.go index 5d3378b7..a3de0a03 100644 --- a/repository/gogit_test.go +++ b/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") diff --git a/repository/gogit_testing.go b/repository/gogit_testing.go index 3e6f72fc..afbb917f 100644 --- a/repository/gogit_testing.go +++ b/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() |