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

Method recordBlob

sizes/sizes.go:229–235  ·  view source on GitHub ↗
(g *Graph, oid git.OID, blobSize BlobSize)

Source from the content-addressed store, hash-verified

227}
228
229func (s *HistorySize) recordBlob(g *Graph, oid git.OID, blobSize BlobSize) {
230 s.UniqueBlobCount.Increment(1)
231 s.UniqueBlobSize.Increment(counts.Count64(blobSize.Size))
232 if s.MaxBlobSize.AdjustMaxIfNecessary(blobSize.Size) {
233 setPath(g.pathResolver, &s.MaxBlobSizeBlob, oid, "blob")
234 }
235}
236
237func (s *HistorySize) recordTree(
238 g *Graph, oid git.OID, treeSize TreeSize, size counts.Count32, treeEntries counts.Count32,

Callers 1

RegisterBlobMethod · 0.80

Calls 4

Count64TypeAlias · 0.92
setPathFunction · 0.85
IncrementMethod · 0.45
AdjustMaxIfNecessaryMethod · 0.45

Tested by

no test coverage detected