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

Method _check

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

Source from the content-addressed store, hash-verified

106 """Verify pre-compiled regex detects .cpp includes."""
107
108 def _check(
109 self, content: str, path: str = "src/fl/test.h"
110 ) -> list[tuple[int, str]]:
111 checker = CppIncludeChecker()
112 checker.check_file_content(_make(content, path))
113 return checker.violations.get(path, [])
114
115 def test_detects_cpp_include(self):
116 violations = self._check('#include "foo.cpp"\nint x;')

Callers 3

test_comment_ignoredMethod · 0.95

Calls 4

check_file_contentMethod · 0.95
CppIncludeCheckerClass · 0.90
_makeFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected