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

Function _find_aggregator

ci/lint_cpp/test_aggregation_checker.py:72–80  ·  view source on GitHub ↗

Find the parent .cpp aggregator for an excluded directory. Convention: tests/fl/codec/ -> tests/fl/codec.cpp

(excluded_dir: Path)

Source from the content-addressed store, hash-verified

70
71
72def _find_aggregator(excluded_dir: Path) -> Path | None:
73 """Find the parent .cpp aggregator for an excluded directory.
74
75 Convention: tests/fl/codec/ -> tests/fl/codec.cpp
76 """
77 aggregator = excluded_dir.with_suffix(".cpp")
78 if aggregator.exists():
79 return aggregator
80 return None
81
82
83def _parse_includes(aggregator: Path) -> set[str]:

Callers 2

_collect_included_filesFunction · 0.85
check_single_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected