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

Function _get_violations

ci/lint_cpp/test_singleton_in_headers_checker.py:15–21  ·  view source on GitHub ↗
(code: str, path: str = "test.h")

Source from the content-addressed store, hash-verified

13
14
15def _get_violations(code: str, path: str = "test.h") -> list[tuple[int, str]]:
16 checker = SingletonInHeadersChecker()
17 fc = _make_content(code, path)
18 if not checker.should_process_file(path):
19 return []
20 checker.check_file_content(fc)
21 return checker.violations.get(path, [])
22
23
24class TestSingletonInHeadersChecker(unittest.TestCase):

Calls 5

should_process_fileMethod · 0.95
check_file_contentMethod · 0.95
_make_contentFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected