MCPcopy Index your code
hub / github.com/github/git-sizer / TableString

Method TableString

sizes/output.go:374–392  ·  view source on GitHub ↗
(
	refGroups []RefGroup, threshold Threshold, nameStyle NameStyle,
)

Source from the content-addressed store, hash-verified

372}
373
374func (s *HistorySize) TableString(
375 refGroups []RefGroup, threshold Threshold, nameStyle NameStyle,
376) string {
377 contents := s.contents(refGroups)
378 t := table{
379 threshold: threshold,
380 nameStyle: nameStyle,
381 footnotes: NewFootnotes(),
382 indent: -1,
383 }
384
385 contents.Emit(&t)
386
387 if t.buf.Len() == 0 {
388 return "No problems above the current threshold were found\n"
389 }
390
391 return t.generateHeader() + t.buf.String() + t.footnotes.String()
392}
393
394func (t *table) indented(sectionHeader string, depth int) *table {
395 return &table{

Callers 1

mainImplementationFunction · 0.80

Calls 5

contentsMethod · 0.95
generateHeaderMethod · 0.95
NewFootnotesFunction · 0.85
EmitMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected