Atlas › Test

no_suffix

Exact test identity: go.temporal.io/server/tools/flakereport/TestNormalizeTestNameFinal/no_suffix

Package
go.temporal.io/server/tools/flakereport
Suite / test hierarchy
TestNormalizeTestNameFinal/no_suffix
Test
no_suffix
Introduced at
parser.go ×1 Frontier kind: Joint frontier
Covered ranges
1
Covered lines
6
Covered files
1

Co-introduced tests

2 other tests enter at the same concept.

Covered source

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

go.temporal.io/server/tools/flakereport/parser.go 6 covered LOC · 1 range

Open complete file

119 // normalizeTestName strips all trailing parenthesized suffixes from test names,
120 // e.g. "(retry 1)", "(final)", "(timeout)".
121 > func normalizeTestName(name string) string { parser.go
122 > for {
123 > stripped := trailingSuffixRegex.ReplaceAllString(name, "")
124 > if stripped == name {
125 > return name
126 > }
127 name = stripped
128 }