MCPcopy Create free account
hub / github.com/Dizzy-K/AutoPT / handle_benchmark_list

Function handle_benchmark_list

cli/main.py:256–270  ·  view source on GitHub ↗
(benchmark_file: str, *, verbose: bool = False)

Source from the content-addressed store, hash-verified

254
255
256def 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
273def handle_benchmark_command(args: argparse.Namespace) -> int:

Callers 1

handle_benchmark_commandFunction · 0.85

Calls 3

load_benchmarksFunction · 0.90
_resolve_benchmark_fileFunction · 0.85
_format_benchmark_rowFunction · 0.85

Tested by

no test coverage detected