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

Function _make_content

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

Source from the content-addressed store, hash-verified

8
9
10def _make_content(code: str, path: str = "test.h") -> FileContent:
11 lines = code.splitlines()
12 return FileContent(path=path, content=code, lines=lines)
13
14
15def _get_violations(code: str, path: str = "test.h") -> list[tuple[int, str]]:

Callers 1

_get_violationsFunction · 0.70

Calls 1

FileContentClass · 0.90

Tested by

no test coverage detected