( name, citation, valueString, unitString, levelOfConcern string, )
| 437 | } |
| 438 | |
| 439 | func (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 | |
| 457 | func (s *HistorySize) JSON( |
| 458 | refGroups []RefGroup, threshold Threshold, nameStyle NameStyle, |
no outgoing calls
no test coverage detected