(t *testing.T)
| 459 | } |
| 460 | |
| 461 | func TestWorktreesBareRepo(t *testing.T) { |
| 462 | // Only git 2.5+ |
| 463 | if !IsGitVersionAtLeast("2.5.0") { |
| 464 | return |
| 465 | } |
| 466 | |
| 467 | repo := test.NewBareRepo(t) |
| 468 | repo.Pushd() |
| 469 | defer func() { |
| 470 | repo.Popd() |
| 471 | repo.Cleanup() |
| 472 | }() |
| 473 | |
| 474 | worktrees, err := GetAllWorktrees(repo.Path) |
| 475 | assert.NoError(t, err) |
| 476 | assert.Nil(t, worktrees) |
| 477 | } |
| 478 | |
| 479 | func TestVersionCompare(t *testing.T) { |
| 480 | assert.True(t, IsVersionAtLeast("2.6.0", "2.6.0")) |
nothing calls this directly
no test coverage detected