(t *testing.T)
| 19 | } |
| 20 | |
| 21 | func TestPushBranch(t *testing.T) { |
| 22 | t.Run("fails on repo without remote", func(t *testing.T) { |
| 23 | dir := initTestRepo(t) |
| 24 | err := PushBranch(dir, "main") |
| 25 | if err == nil { |
| 26 | t.Error("PushBranch() expected error for repo without remote, got nil") |
| 27 | } |
| 28 | }) |
| 29 | } |
| 30 | |
| 31 | func TestDeleteBranch(t *testing.T) { |
| 32 | t.Run("deletes existing branch", func(t *testing.T) { |
nothing calls this directly
no test coverage detected