Orchestrata Ultimate › Tests › Reference › knowledge_graph › test_kg_context_coverage

Tests reference — tests/knowledge_graph/test_kg_context_coverage.py

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

Prose pending.

tests/knowledge_graph/test_kg_context_coverage.py

source · 21 tests · 507 lines

Coverage tests for kg_context.py — targets connected paths with seeded data.

Covers: core.graph_factory, knowledge_graph.kg_context, core.graph/ (package)

Kind Name Line Description
function test_get_file_content_returns_content_when_present 52
function test_get_file_content_falls_back_to_signatures 62
function test_get_file_content_returns_none_when_no_match 80
function test_get_project_files_returns_seeded_files 89
function test_get_source_listing_with_content 108
function test_get_source_listing_falls_back_to_signatures 120
function test_get_source_listing_for_files_content_and_missing 141
function test_get_classes_and_functions_with_seeded 160
function test_get_dependencies_returns_imports 186
function test_get_monorepo_classes_returns_empty_when_no_class_names 206
function test_get_monorepo_classes_with_content 210
function test_get_monorepo_classes_reads_disk_when_kg_empty 228 When KG content is empty, falls back to disk read.
function test_get_monorepo_classes_skips_unreadable_disk_path 252 KG content empty + disk file nonexistent -> skip.
function test_get_monorepo_classes_truncates_long_files 271 Files longer than 200 lines are truncated.
function test_shared_driver_verify_success 299 connect() using a shared driver calls verify and succeeds.
function test_store_and_get_design_doc_roundtrip 310 Store a design doc, tag for cleanup, then fetch it back.
function test_sync_files_writes_entities 332 sync_files_to_kg populates class/function entity nodes.
function test_sync_files_class_function_use_canonical_project_qualified_id 366 Class/Function's canonical merge key is id (SPEC-106
function test_sync_files_truncates_long_files 434 Files longer than 500 lines are truncated.
function test_sync_skips_module_prefixed_dirs 455 sync walks skip directories starting with 'Module:'.
function test_sync_handles_unreadable_file 473 Unreadable files are skipped, no crash.