(
benchmark_name: str,
inline_benchmark: dict[str, Any],
benchmark_index: dict[str, dict[str, Any]],
)
| 260 | |
| 261 | |
| 262 | def _merge_benchmark_metadata( |
| 263 | benchmark_name: str, |
| 264 | inline_benchmark: dict[str, Any], |
| 265 | benchmark_index: dict[str, dict[str, Any]], |
| 266 | ) -> dict[str, Any]: |
| 267 | merged = dict(benchmark_index.get(_benchmark_lookup_key(benchmark_name), {})) |
| 268 | if inline_benchmark: |
| 269 | merged.update(inline_benchmark) |
| 270 | if benchmark_name and "name" not in merged: |
| 271 | merged["name"] = benchmark_name |
| 272 | return merged |
| 273 | |
| 274 | |
| 275 | def _infer_legacy_metadata( |
no test coverage detected