MCPcopy Index your code
hub / github.com/python/cpython / fmt_summary

Function fmt_summary

Tools/c-analyzer/c_analyzer/__main__.py:215–231  ·  view source on GitHub ↗
(analysis)

Source from the content-addressed store, hash-verified

213
214
215def fmt_summary(analysis):
216 # XXX Support sorting and grouping.
217 items = list(analysis)
218 total = len(items)
219
220 def section(name):
221 _, render = build_section(name, items)
222 yield from render()
223
224 yield from section('types')
225 yield from section('functions')
226 yield from section('variables')
227 yield from section('statements')
228
229 yield ''
230# yield f'grand total: {len(supported) + len(unsupported)}'
231 yield f'grand total: {total}'
232
233
234def _fmt_one_summary(item, extra=None):

Callers

nothing calls this directly

Calls 2

listClass · 0.85
sectionFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…