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

Method Increment

counts/counts.go:87–89  ·  view source on GitHub ↗

Increment increases `*n1` by `n2`, capped at math.MaxUint64.

(n2 Count64)

Source from the content-addressed store, hash-verified

85
86// Increment increases `*n1` by `n2`, capped at math.MaxUint64.
87func (n1 *Count64) Increment(n2 Count64) {
88 *n1 = n1.Plus(n2)
89}
90
91// AdjustMaxIfNecessary adjusts `*n1` to be `max(*n1, n2)`. Return
92// true iff `n2` was greater than `*n1`.

Callers 1

TestCount64Function · 0.95

Calls 1

PlusMethod · 0.95

Tested by 1

TestCount64Function · 0.76