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

Method Emit

sizes/output.go:144–155  ·  view source on GitHub ↗
(t *table)

Source from the content-addressed store, hash-verified

142}
143
144func (i *item) Emit(t *table) {
145 levelOfConcern, interesting := i.levelOfConcern(t.threshold)
146 if !interesting {
147 return
148 }
149 valueString, unitString := i.humaner.Format(i.value, i.unit)
150 t.formatRow(
151 i.name, t.footnotes.CreateCitation(i.Footnote(t.nameStyle)),
152 valueString, unitString,
153 levelOfConcern,
154 )
155}
156
157func (i *item) Footnote(nameStyle NameStyle) string {
158 if i.path == nil || i.path.OID == git.NullOID {

Callers

nothing calls this directly

Calls 5

levelOfConcernMethod · 0.95
FootnoteMethod · 0.95
FormatMethod · 0.80
formatRowMethod · 0.80
CreateCitationMethod · 0.80

Tested by

no test coverage detected