(t *testing.T)
| 41 | } |
| 42 | |
| 43 | func TestGetGitDir_PrimaryEqualsCommon(t *testing.T) { |
| 44 | repo := t.TempDir() |
| 45 | setupGitRepo(t, repo) |
| 46 | seedInitialCommit(t, repo) |
| 47 | |
| 48 | gitDir, err := GetGitDir(repo) |
| 49 | require.NoError(t, err) |
| 50 | common, err := GetCommonDir(repo) |
| 51 | require.NoError(t, err) |
| 52 | |
| 53 | assert.Equal(t, resolveSymlinks(common), resolveSymlinks(gitDir)) |
| 54 | } |
| 55 | |
| 56 | func TestGetGitDir_LinkedDiffersFromCommon(t *testing.T) { |
| 57 | repo := t.TempDir() |
nothing calls this directly
no test coverage detected