Atlas › Test

with_empty_job_ID

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

Package
go.temporal.io/server/tools/flakereport
Suite / test hierarchy
TestBuildGitHubURL/with_empty_job_ID
Test
with_empty_job_ID
Introduced at
github.go ×1 Frontier kind: Joint frontier
Covered ranges
3
Covered lines
6
Covered files
2

Co-introduced tests

1 other test enter at the same concept.

Covered source

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

go.temporal.io/server/tools/common/github/url.go 3 covered LOC · 1 range

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.
go.temporal.io/server/tools/flakereport/github.go 3 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)
157 }
158 > return github.RunURL(repo, runID) github.go
159 }