Orchestrata Ultimate › Tests › Reference › claude › test_rag_context_coverage

Tests reference — tests/claude/test_rag_context_coverage.py

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

Prose pending.

tests/claude/test_rag_context_coverage.py

source · 29 tests · 506 lines

Line-coverage tests for claude/tools/rag_context.py.

Kind Name Line Description
function test_cache_returns_none_when_store_missing 64
function test_cache_returns_content_addressed_path 69
function test_cached_none_path_and_missing_file_and_bad_json 81
function test_store_none_path_is_noop_and_oserror_is_swallowed 91
function test_store_writes_atomically_via_tmp 103
function test_known_slugs_missing_store_returns_empty 114
function test_known_slugs_invalid_json_returns_empty 120
function test_known_slugs_collects_sorted_unique_and_caches 128
function test_project_slug_direct_and_override_and_casefolded 150
function test_project_slug_unindexed_returns_none 169
function test_parse_full_blocks_joins_bodies_and_filters_pathless 180
function test_parse_empty_text_is_empty 206
function test_rag_query_missing_tool_returns_empty 214
function test_rag_query_nonzero_exit_returns_empty 219
function test_rag_query_timeout_returns_empty 230
function test_rag_query_success_parses_and_caches 244
function test_rag_block_unindexed_project_is_empty 278
function test_rag_block_no_hits_reports_scope 286
function test_rag_block_formats_hits_with_truncation 299
function test_rag_block_short_body_not_truncated 323
function test_main_slugs_lists_indexed_projects 339
function test_main_unindexed_root_prints_placeholder 351
function test_main_prints_rag_block_for_indexed_root 363
function test_real_store_project_slug_for_this_repo 386 Against the REAL store: this checkout resolves through SLUG_OVERRIDES
function test_real_rag_query_and_block 392 REAL wiki-rag-query against the REAL store (cache redirected to tmp so
function test_repo_names_lists_the_directory_first_for_a_plain_folder 449 No git at all: exactly the old behaviour, the directory name alone.
function test_real_store_slug_resolves_from_a_worktree_named_after_its_branch 458 THE regression (2026-10-05): a worktree under
function test_real_store_slug_resolves_from_the_origin_remote_name 475 A clone under an arbitrary directory name still names its repository
function test_a_repo_with_no_indexed_identity_still_resolves_to_none 493 Returning None stays a real answer: an unindexed project has no RAG.