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

Function _make

ci/lint_cpp/test_public_settings_pattern_checker.py:41–52  ·  view source on GitHub ↗

Build a checker with an injected (fake) FastLED.h and a FileContent.

(
    code: str,
    path: str = _FL_PATH,
    fastled_h: str = "",
)

Source from the content-addressed store, hash-verified

39
40
41def _make(
42 code: str,
43 path: str = _FL_PATH,
44 fastled_h: str = "",
45) -> tuple[PublicSettingsPatternChecker, FileContent]:
46 """Build a checker with an injected (fake) FastLED.h and a FileContent."""
47 checker = PublicSettingsPatternChecker.__new__(PublicSettingsPatternChecker)
48 checker.violations = {}
49 checker._fastled_h_content = fastled_h
50 lines = code.splitlines()
51 fc = FileContent(path=path, content=code, lines=lines)
52 return checker, fc
53
54
55def _violations(

Callers 1

_violationsFunction · 0.70

Calls 1

FileContentClass · 0.90

Tested by

no test coverage detected