MCPcopy Create free account
hub / github.com/base/base / parses_aggregate_benchmark_command

Function parses_aggregate_benchmark_command

etc/systems/src/benchmark_cli.rs:1426–1439  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1424
1425 #[test]
1426 fn parses_aggregate_benchmark_command() {
1427 let cli = BenchmarkCli::parse_from([
1428 "base-bench",
1429 "aggregate",
1430 "--output-dir",
1431 "results",
1432 "results/run-a",
1433 ]);
1434 let Some(BenchmarkCommand::Aggregate(args)) = cli.command else {
1435 panic!("expected aggregate benchmark command");
1436 };
1437 assert_eq!(args.output_dir, std::path::PathBuf::from("results"));
1438 assert_eq!(args.run_output_dirs, vec![std::path::PathBuf::from("results/run-a")]);
1439 }
1440
1441 #[test]
1442 fn defaults_to_fresh_local_benchmark_without_arguments() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected