Atlas › Test

normal_SHA

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

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

Covered source

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

go.temporal.io/server/tools/common/github/runs.go 4 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] runs.go
45 > }
46 return r.HeadSHA
47 }