( refGroups []RefGroup, threshold Threshold, nameStyle NameStyle, )
| 455 | } |
| 456 | |
| 457 | func (s *HistorySize) JSON( |
| 458 | refGroups []RefGroup, threshold Threshold, nameStyle NameStyle, |
| 459 | ) ([]byte, error) { |
| 460 | contents := s.contents(refGroups) |
| 461 | items := make(map[string]*item) |
| 462 | contents.CollectItems(items) |
| 463 | j, err := json.MarshalIndent(items, "", " ") |
| 464 | return j, err |
| 465 | } |
| 466 | |
| 467 | func (s *HistorySize) contents(refGroups []RefGroup) tableContents { |
| 468 | S := newSection |
no test coverage detected