Atlas › Test

exactly_7_chars

Exact test identity: go.temporal.io/server/tools/common/github/TestRunShortSHA/exactly_7_chars

Package
go.temporal.io/server/tools/common/github
Suite / test hierarchy
TestRunShortSHA/exactly_7_chars
Test
exactly_7_chars
Introduced at
runs.go ×1 Frontier kind: Joint frontier
Covered ranges
2
Covered lines
3
Covered files
1

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/runs.go 3 covered LOC · 2 ranges

Open complete file

40
41 // ShortSHA returns the first seven characters of the run's commit SHA.
42 > func (r Run) ShortSHA() string { runs.go
43 > if len(r.HeadSHA) > 7 {
44 return r.HeadSHA[:7]
45 }
46 > return r.HeadSHA runs.go
47 }
48