(benchmark_file: str, *, verbose: bool = False)
| 254 | |
| 255 | |
| 256 | def handle_benchmark_list(benchmark_file: str, *, verbose: bool = False) -> int: |
| 257 | items = load_benchmarks(_resolve_benchmark_file(benchmark_file)) |
| 258 | for item in items: |
| 259 | if verbose: |
| 260 | print( |
| 261 | _format_benchmark_row( |
| 262 | item.name, |
| 263 | target=item.target, |
| 264 | category=item.category, |
| 265 | difficulty=item.difficulty, |
| 266 | ) |
| 267 | ) |
| 268 | else: |
| 269 | print(item.name) |
| 270 | return 0 |
| 271 | |
| 272 | |
| 273 | def handle_benchmark_command(args: argparse.Namespace) -> int: |
no test coverage detected