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

Method addLink

sizes/sizes.go:69–73  ·  view source on GitHub ↗

Record that the object has a link as a direct descendant.

(filename string)

Source from the content-addressed store, hash-verified

67
68// Record that the object has a link as a direct descendant.
69func (s *TreeSize) addLink(filename string) {
70 s.MaxPathDepth.AdjustMaxIfNecessary(1)
71 s.MaxPathLength.AdjustMaxIfNecessary(counts.NewCount32(uint64(len(filename))))
72 s.ExpandedLinkCount.Increment(1)
73}
74
75// Record that the object has a submodule as a direct descendant.
76func (s *TreeSize) addSubmodule(filename string) {

Callers 1

initializeMethod · 0.80

Calls 3

NewCount32Function · 0.92
AdjustMaxIfNecessaryMethod · 0.45
IncrementMethod · 0.45

Tested by

no test coverage detected