Atlas › Test

invalid_artifact_name

Exact test identity: go.temporal.io/server/tools/flakereport/TestParseArtifactName/invalid_artifact_name

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

Covered source

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

go.temporal.io/server/tools/flakereport/github.go 5 covered LOC · 2 ranges

Open complete file

124 // Unit/integration: junit-xml--{run_id}--{job_id}--{run_attempt}--unit-test
125 // Returns: runID, jobID, matrixName ("unknown" for fields that are absent or unparseable)
126 > func parseArtifactName(artifactName string) (runID string, jobID string, matrixName string) { github.go
127 > parts := strings.Split(artifactName, "--")
128 > if len(parts) < 3 {
129 > return "unknown", "unknown", "unknown" github.go
130 > }
131
132 runID = parts[1]