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

Method formatRow

sizes/output.go:439–455  ·  view source on GitHub ↗
(
	name, citation, valueString, unitString, levelOfConcern string,
)

Source from the content-addressed store, hash-verified

437}
438
439func (t *table) formatRow(
440 name, citation, valueString, unitString, levelOfConcern string,
441) {
442 prefix := ""
443 if t.indent != 0 {
444 prefix = spaces[:2*(t.indent-1)] + "* "
445 }
446 spacer := ""
447 l := len(prefix) + len(name) + len(citation)
448 if l < 28 {
449 spacer = spaces[:28-l]
450 }
451 fmt.Fprintf(
452 &t.buf, "| %s%s%s%s | %5s %-3s | %-30s |\n",
453 prefix, name, spacer, citation, valueString, unitString, levelOfConcern,
454 )
455}
456
457func (s *HistorySize) JSON(
458 refGroups []RefGroup, threshold Threshold, nameStyle NameStyle,

Callers 2

formatSectionHeaderMethod · 0.95
EmitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected