TestGetLatestBranchCommitSHA_Integration verifies fetching the latest commit SHA for a branch.
(t *testing.T)
| 442 | |
| 443 | // TestGetLatestBranchCommitSHA_Integration verifies fetching the latest commit SHA for a branch. |
| 444 | func TestGetLatestBranchCommitSHA_Integration(t *testing.T) { |
| 445 | skipWithoutGitHubAuth(t) |
| 446 | |
| 447 | sha, err := getLatestBranchCommitSHA(context.Background(), "actions/checkout", "main") |
| 448 | require.NoError(t, err, "Should fetch latest commit SHA for actions/checkout main branch") |
| 449 | assert.True(t, IsCommitSHA(sha), "Result should be a 40-char commit SHA, got: %s", sha) |
| 450 | } |
| 451 | |
| 452 | // --- Org Dry-Run Integration Tests --- |
| 453 |
nothing calls this directly
no test coverage detected