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

Method _check

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

Source from the content-addressed store, hash-verified

214 """Verify pre-compiled regex detects numeric limit macros."""
215
216 def _check(
217 self, content: str, path: str = "src/fl/test.cpp"
218 ) -> list[tuple[int, str]]:
219 checker = NumericLimitMacroChecker()
220 checker.check_file_content(_make(content, path))
221 return checker.violations.get(path, [])
222
223 def test_detects_uint32_max(self):
224 violations = self._check("int x = UINT32_MAX;")

Callers 5

test_detects_int_minMethod · 0.95
test_comment_ignoredMethod · 0.95

Calls 4

check_file_contentMethod · 0.95
_makeFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected