Record that the object has a blob of the specified `size` as a direct descendant.
(filename string, size BlobSize)
| 59 | // Record that the object has a blob of the specified `size` as a |
| 60 | // direct descendant. |
| 61 | func (s *TreeSize) addBlob(filename string, size BlobSize) { |
| 62 | s.MaxPathDepth.AdjustMaxIfNecessary(1) |
| 63 | s.MaxPathLength.AdjustMaxIfNecessary(counts.NewCount32(uint64(len(filename)))) |
| 64 | s.ExpandedBlobSize.Increment(counts.Count64(size.Size)) |
| 65 | s.ExpandedBlobCount.Increment(1) |
| 66 | } |
| 67 | |
| 68 | // Record that the object has a link as a direct descendant. |
| 69 | func (s *TreeSize) addLink(filename string) { |
no test coverage detected