Atlas › Test
TestStrictlyIncreasing
Exact test identity: go.temporal.io/server/common/number/TestCompact8Suite/TestStrictlyIncreasing
- Package
go.temporal.io/server/common/number
- Suite / test hierarchy
TestCompact8Suite/TestStrictlyIncreasing
- Test
TestStrictlyIncreasing
- Introduced at
- TestMonotonic, TestDecodeKnownValues, +1 Frontier kind: Test frontier
- Covered ranges
- 5
- Covered lines
- 10
- 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/common/number/compact8.go 10 covered LOC · 5 ranges
Open complete file
19
20
// DecodeCompact8 converts a Compact8 value to an int64.
21
>
func DecodeCompact8(b Compact8) int64 {
compact8.go
22
>
if b == 0 {
24
>
}
26
>
m := int(b % 12)
27
>
if e == 0 {
28
>
return int64(m) << (compact8offset + 1)
compact8.go
29
>
}
30
>
return int64(12+m) << (e + compact8offset)
compact8.go
31
}
32