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

Method _extract_header_name

ci/perf/compile_perf.py:152–163  ·  view source on GitHub ↗

Extract just the header filename or relative path within project.

(self, path: str)

Source from the content-addressed store, hash-verified

150 return path
151
152 def _extract_header_name(self, path: str) -> str:
153 """Extract just the header filename or relative path within project."""
154 norm_path = self._normalize_path(path)
155
156 # Try to extract relative to src/
157 if "/src/" in norm_path:
158 parts = norm_path.split("/src/")
159 if len(parts) > 1:
160 return parts[-1]
161
162 # Otherwise just return the filename
163 return Path(path).name
164
165 def get_header_times(self, max_depth: int = 2) -> dict[str, Any]:
166 """

Callers 2

get_header_timesMethod · 0.95
get_top_operationsMethod · 0.95

Calls 1

_normalize_pathMethod · 0.95

Tested by

no test coverage detected