()
| 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() { |
nothing calls this directly
no outgoing calls
no test coverage detected