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

Method _check

ci/lint_cpp/test_optimized_checkers.py:253–258  ·  view source on GitHub ↗
(
        self, content: str, path: str = "src/fl/test.h"
    )

Source from the content-addressed store, hash-verified

251 """Verify pre-compiled regex detects static locals in headers."""
252
253 def _check(
254 self, content: str, path: str = "src/fl/test.h"
255 ) -> list[tuple[int, str]]:
256 checker = StaticInHeaderChecker()
257 checker.check_file_content(_make(content, path))
258 return checker.violations.get(path, [])
259
260 def test_detects_static_local_in_header(self):
261 content = (

Calls 4

check_file_contentMethod · 0.95
_makeFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected