Atlas › Test

with_job_ID

Exact test identity: go.temporal.io/server/tools/flakereport/TestBuildGitHubURL/with_job_ID

Package
go.temporal.io/server/tools/flakereport
Suite / test hierarchy
TestBuildGitHubURL/with_job_ID
Test
with_job_ID
Introduced at
url.go ×1 Frontier kind: Joint frontier
Covered ranges
4
Covered lines
10
Covered files
2

Covered source

Expand a file to inspect source; the > gutter marks covered lines.

go.temporal.io/server/tools/common/github/url.go 6 covered LOC · 2 ranges

Open complete file

9
10 // RunURL constructs a GitHub Actions workflow run URL.
11 > func RunURL(repo, runID string) string { url.go
12 > return fmt.Sprintf("https://github.com/%s/actions/runs/%s", repo, runID)
13 > }
14
15 // JobURL constructs a GitHub Actions job URL.
16 > func JobURL(repo, runID, jobID string) string { url.go
17 > return fmt.Sprintf("%s/job/%s", RunURL(repo, runID), jobID)
18 > }
go.temporal.io/server/tools/flakereport/github.go 4 covered LOC · 2 ranges

Open complete file

152 // If jobID == "unknown": https://github.com/{repo}/actions/runs/{runID}
153 // Otherwise: https://github.com/{repo}/actions/runs/{runID}/job/{jobID}
154 > func buildGitHubURL(repo, runID, jobID string) string { github.go
155 > if jobID != "unknown" && jobID != "" {
156 > return github.JobURL(repo, runID, jobID) github.go
157 > }
158 return github.RunURL(repo, runID)
159 }