MCPcopy Create free account
hub / github.com/FastLED/FastLED / _print_hits

Function _print_hits

ci/tools/check_noexcept.py:308–317  ·  view source on GitHub ↗
(hits: list[NoexceptHit])

Source from the content-addressed store, hash-verified

306
307
308def _print_hits(hits: list[NoexceptHit]) -> None:
309 by_file: dict[str, list[NoexceptHit]] = {}
310 for hit in hits:
311 by_file.setdefault(hit.path, []).append(hit)
312
313 for filepath in sorted(by_file):
314 print(f"{filepath}:")
315 for hit in sorted(by_file[filepath], key=lambda item: item.line):
316 print(f" Line {hit.line}: {hit.line_text}")
317 print()
318
319
320def main() -> int:

Callers 1

mainFunction · 0.85

Calls 2

printFunction · 0.50
appendMethod · 0.45

Tested by

no test coverage detected