MCPcopy
hub / github.com/github/git-sizer / NewCount64

Function NewCount64

counts/counts.go:66–68  ·  view source on GitHub ↗

NewCount64 initializes a Count64 from a uint64.

(n uint64)

Source from the content-addressed store, hash-verified

64
65// NewCount64 initializes a Count64 from a uint64.
66func NewCount64(n uint64) Count64 {
67 return Count64(n)
68}
69
70// ToUint64 returns the value of `n` as a `uint64`. If the value has
71// overflowed, it returns `(math.MaxUint64, true)`.

Callers 4

TestMetricFunction · 0.92
TestBinaryFunction · 0.92
TestLimits64Function · 0.92
TestCount64Function · 0.92

Calls 1

Count64TypeAlias · 0.85

Tested by 4

TestMetricFunction · 0.74
TestBinaryFunction · 0.74
TestLimits64Function · 0.74
TestCount64Function · 0.74