(t *testing.T)
| 260 | } |
| 261 | |
| 262 | func TestPruneWorktrees(t *testing.T) { |
| 263 | t.Run("prune succeeds on clean repo", func(t *testing.T) { |
| 264 | dir := initTestRepo(t) |
| 265 | err := PruneWorktrees(dir) |
| 266 | if err != nil { |
| 267 | t.Fatalf("PruneWorktrees() error = %v", err) |
| 268 | } |
| 269 | }) |
| 270 | } |
| 271 | |
| 272 | func TestMergeBranch(t *testing.T) { |
| 273 | t.Run("fast-forward merge succeeds", func(t *testing.T) { |
nothing calls this directly
no test coverage detected