--- Helper Function Tests --- TestGetRepoDefaultBranch_Integration verifies fetching the default branch via GitHub API.
(t *testing.T)
| 433 | |
| 434 | // TestGetRepoDefaultBranch_Integration verifies fetching the default branch via GitHub API. |
| 435 | func TestGetRepoDefaultBranch_Integration(t *testing.T) { |
| 436 | skipWithoutGitHubAuth(t) |
| 437 | |
| 438 | branch, err := getRepoDefaultBranch(context.Background(), "actions/checkout") |
| 439 | require.NoError(t, err, "Should fetch default branch for actions/checkout") |
| 440 | assert.Equal(t, "main", branch, "actions/checkout default branch should be 'main'") |
| 441 | } |
| 442 | |
| 443 | // TestGetLatestBranchCommitSHA_Integration verifies fetching the latest commit SHA for a branch. |
| 444 | func TestGetLatestBranchCommitSHA_Integration(t *testing.T) { |
nothing calls this directly
no test coverage detected