( refGroups []RefGroup, threshold Threshold, nameStyle NameStyle, )
| 372 | } |
| 373 | |
| 374 | func (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 | |
| 394 | func (t *table) indented(sectionHeader string, depth int) *table { |
| 395 | return &table{ |
no test coverage detected