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

Function _make_content

ci/lint_cpp/test_native_platform_defines_checker.py:19–22  ·  view source on GitHub ↗

Helper: build a FileContent from a code string.

(code: str, path: str = "test.h")

Source from the content-addressed store, hash-verified

17
18
19def _make_content(code: str, path: str = "test.h") -> FileContent:
20 """Helper: build a FileContent from a code string."""
21 lines = code.splitlines()
22 return FileContent(path=path, content=code, lines=lines)
23
24
25def _get_violations(code: str) -> list[tuple[int, str]]:

Callers 1

_get_violationsFunction · 0.70

Calls 1

FileContentClass · 0.90

Tested by

no test coverage detected