(t *testing.T)
| 8 | ) |
| 9 | |
| 10 | func TestCheckGHCLI(t *testing.T) { |
| 11 | t.Run("returns result without error", func(t *testing.T) { |
| 12 | installed, _, err := CheckGHCLI() |
| 13 | if err != nil { |
| 14 | t.Fatalf("CheckGHCLI() error = %v", err) |
| 15 | } |
| 16 | // We can't guarantee gh is installed in CI, but we can verify the function runs |
| 17 | _ = installed |
| 18 | }) |
| 19 | } |
| 20 | |
| 21 | func TestPushBranch(t *testing.T) { |
| 22 | t.Run("fails on repo without remote", func(t *testing.T) { |
nothing calls this directly
no test coverage detected