Orchestrata Ultimate › Tests › Reference › scripts › test_benchmark_prolog_clips_coverage

Tests reference — tests/scripts/test_benchmark_prolog_clips_coverage.py

Module of tests/scripts, split out because the directory page would be too large.

Prose pending.

tests/scripts/test_benchmark_prolog_clips_coverage.py

source · 6 tests · 203 lines

Coverage-completion tests for scripts/benchmark_prolog_clips.py.

Kind Name Line Description
function test_benchmark_swi_missing_knowledge_pl_raises 99 PROLOG_DIR pointing at a real dir without knowledge.pl -> FileNotFoundError.
function test_main_rejects_single_node_graph 112 --nodes 1 cannot form a chain -> rc 2 with the validation message.
function test_main_rejects_too_few_edges 119 --edges < --nodes - 1 cannot form a connected chain -> rc 2.
function test_main_swi_only_when_clips_binary_missing 126 Missing clips binary -> SWI-only report, clips null, speedups null, --output written.
function test_main_full_report_with_real_clips_speedups 158 Real clips binary -> speedups computed from real subprocess/inference times.
function test_main_clips_failure_warns_but_succeeds 182 A failing CLIPS binary is caught: warning on stderr, exit 0, clips null.