Orchestrata Ultimate › Tests › Reference › scripts › test_benchmark_context_pack
Tests reference — tests/scripts/test_benchmark_context_pack.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_benchmark_context_pack.py
source · 21 tests · 281 lines
Tests for scripts/benchmark_context_pack.py — the SPEC-106 context-pack benchmark CLI.
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_percentile_empty_list_returns_zero |
44 | |
| function | test_percentile_mid_and_clamped_high |
49 | |
| function | test_percentile_zero_returns_first |
57 | |
| function | test_driver_from_env_missing_uri_raises |
64 | |
| function | test_driver_from_env_builds_real_driver |
69 | |
| function | test_main_no_args_prints_usage_and_returns_1 |
80 | |
| function | test_main_help_returns_0 |
87 | |
| function | test_main_unknown_command_returns_1 |
95 | |
| function | test_main_none_argv_reads_sys_argv |
102 | main(None) — the real CLI entry path — falls back to sys.argv[1:]. |
| function | test_main_guard_subprocess_no_args_exits_1 |
115 | The real python scripts/benchmark_context_pack.py process semantics: |
| function | test_main_guard_subprocess_help_exits_0 |
128 | |
| function | test_main_dispatches_seed_subcommand |
139 | |
| function | test_main_dispatches_run_subcommand |
145 | |
| function | test_seed_missing_ast_file_returns_1 |
155 | |
| function | test_seed_happy_path_syncs_minimal_ast |
164 | Real GraphSyncer.full_sync against the per-slot test database. |
| function | test_run_rejects_invalid_task_type |
193 | |
| function | test_run_rejects_zero_iterations |
198 | |
| function | test_run_unreachable_graph_returns_1 |
208 | |
| function | test_run_happy_path_text_output |
218 | |
| function | test_run_happy_path_json_output |
237 | |
| function | test_run_p50_over_budget_returns_2 |
263 |