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

Method JSON

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

Source from the content-addressed store, hash-verified

455}
456
457func (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
467func (s *HistorySize) contents(refGroups []RefGroup) tableContents {
468 S := newSection

Callers 1

mainImplementationFunction · 0.80

Calls 2

contentsMethod · 0.95
CollectItemsMethod · 0.65

Tested by

no test coverage detected