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

Function _rust_records

ci/lint_cpp/test_rust_parity.py:163–194  ·  view source on GitHub ↗
(
    checker_key: str, project_root: Path, path: Path
)

Source from the content-addressed store, hash-verified

161
162
163def _rust_records(
164 checker_key: str, project_root: Path, path: Path
165) -> list[dict[str, Any]]:
166 result = RunningProcess.run(
167 [
168 "soldr",
169 "cargo",
170 "run",
171 "--release",
172 "--bin",
173 "fastled-lint",
174 "--manifest-path",
175 "ci/lint_cpp_rs/Cargo.toml",
176 "--",
177 "--checker",
178 checker_key,
179 "--format",
180 "json",
181 "--project-root",
182 str(project_root),
183 str(path),
184 ],
185 cwd=str(PROJECT_ROOT),
186 capture_output=True,
187 check=False,
188 timeout=300,
189 )
190 assert result.returncode in (0, 1), result.stderr
191 records = parse_rust_json_output(result.stdout)
192 for record in records:
193 record["path"] = _normalize_path(record["path"])
194 return records
195
196
197@pytest.mark.parametrize(

Calls 3

parse_rust_json_outputFunction · 0.90
_normalize_pathFunction · 0.70
runMethod · 0.45

Tested by

no test coverage detected