Atlas › Test

TestServiceName

Exact test identity: go.temporal.io/server/common/api/TestServiceName

Package
go.temporal.io/server/common/api
Suite / test hierarchy
TestServiceName
Test
TestServiceName
Introduced at
metadata.go ×1 Frontier kind: Joint frontier
Covered ranges
2
Covered lines
6
Covered files
1

Covered source

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

go.temporal.io/server/common/api/metadata.go 6 covered LOC · 2 ranges

Open complete file

241 }
242
243 > func ServiceName(fullApiName string) string { metadata.go
244 > index := strings.LastIndex(fullApiName, "/")
245 > if index > -1 {
246 > return fullApiName[:index+1]
247 > }
248 > return "" metadata.go
249 }