(
checker_key: str, project_root: Path, path: Path
)
| 161 | |
| 162 | |
| 163 | def _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( |
no test coverage detected