(t *testing.T)
| 91 | } |
| 92 | |
| 93 | func TestGetRepositoryRoot_NotGitRepo(t *testing.T) { |
| 94 | tmpDir := t.TempDir() |
| 95 | // Don't initialize git |
| 96 | |
| 97 | _, err := GetRepositoryRoot(tmpDir) |
| 98 | |
| 99 | assert.Error(t, err) |
| 100 | } |
| 101 | |
| 102 | // Tests for GetCurrentCommitHash |
| 103 |
nothing calls this directly
no test coverage detected