(t *testing.T)
| 299 | } |
| 300 | |
| 301 | func TestRunGitPush_NoNewCommits(t *testing.T) { |
| 302 | tempDir, _ := setupTestRepository(t) |
| 303 | branch := getCurrentBranch(t, tempDir) |
| 304 | |
| 305 | // Push with no new commits; remote is already up to date — should not error. |
| 306 | err := RunGitPush(context.Background(), tempDir, "origin", branch) |
| 307 | require.NoError(t, err, "RunGitPush should not fail when there are no new commits") |
| 308 | } |
| 309 | |
| 310 | func TestInferGitRepoRoot_InRepoRoot(t *testing.T) { |
| 311 | tempDir, _ := setupTestRepository(t) |
nothing calls this directly
no test coverage detected