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

Method Increment

counts/counts.go:36–38  ·  view source on GitHub ↗

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

(n2 Count32)

Source from the content-addressed store, hash-verified

34
35// Increment increases `*n1` by `n2`, capped at math.MaxUint32.
36func (n1 *Count32) Increment(n2 Count32) {
37 *n1 = n1.Plus(n2)
38}
39
40// AdjustMaxIfNecessary adjusts `*n1` to be `max(*n1, n2)`. Return
41// true iff `n2` was greater than `*n1`.

Callers 14

TestCount32Function · 0.95
addDescendentMethod · 0.45
addBlobMethod · 0.45
addLinkMethod · 0.45
addSubmoduleMethod · 0.45
recordBlobMethod · 0.45
recordTreeMethod · 0.45
recordCommitMethod · 0.45
recordTagMethod · 0.45
recordReferenceMethod · 0.45
recordReferenceGroupMethod · 0.45
initializeMethod · 0.45

Calls 1

PlusMethod · 0.95

Tested by 1

TestCount32Function · 0.76