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

Function _violations

ci/lint_cpp/test_asm_js_location_checker.py:21–26  ·  view source on GitHub ↗
(code: str, path: str = _HEADER_PATH)

Source from the content-addressed store, hash-verified

19
20
21def _violations(code: str, path: str = _HEADER_PATH) -> list[tuple[int, str]]:
22 checker = AsmJsLocationChecker()
23 if not checker.should_process_file(path):
24 return []
25 checker.check_file_content(_make(code, path))
26 return checker.violations.get(path, [])
27
28
29class TestFileFiltering(unittest.TestCase):

Calls 5

should_process_fileMethod · 0.95
check_file_contentMethod · 0.95
_makeFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected