(t *testing.T)
| 133 | } |
| 134 | |
| 135 | func TestGetCurrentCommitHash_NoCommits(t *testing.T) { |
| 136 | tmpDir := t.TempDir() |
| 137 | setupGitRepo(t, tmpDir) |
| 138 | |
| 139 | // No commits made |
| 140 | _, err := GetCurrentCommitHash(tmpDir) |
| 141 | |
| 142 | assert.Error(t, err) |
| 143 | } |
| 144 | |
| 145 | // Tests for GetShortCommitHash |
| 146 |
nothing calls this directly
no test coverage detected