Orchestrata Ultimate › Tests › Reference › claude › test_kg_sync_jsonl_coverage
Tests reference — tests/claude/test_kg_sync_jsonl_coverage.py
Module of tests/claude, split out because the directory page would be too large.
Prose pending.
tests/claude/test_kg_sync_jsonl_coverage.py
source · 41 tests · 395 lines
Line-coverage tests for
claude/tools/kg_sync_jsonl.py.
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_transcript_dir_sanitizes_cwd |
56 | |
| function | test_nodes_path_joins_transcript_dir |
62 | |
| function | test_user_text_rejects_non_string |
70 | |
| function | test_user_text_rejects_empty_and_system |
75 | |
| function | test_user_text_rejects_skip_prefixes |
80 | |
| function | test_user_text_accepts_prose |
87 | |
| function | test_assistant_text_from_string |
91 | |
| function | test_assistant_text_from_blocks |
96 | |
| function | test_assistant_text_non_text_types |
105 | |
| function | test_row_to_node_skips_non_user_assistant |
112 | |
| function | test_row_to_node_user_row |
116 | |
| function | test_row_to_node_assistant_row |
124 | |
| function | test_row_to_node_no_prose_returns_none |
129 | |
| function | test_row_to_node_fallback_session_id |
134 | |
| function | test_read_file_turns_missing_file |
143 | |
| function | test_read_file_turns_full |
148 | |
| function | test_read_file_turns_partial_trailing_line |
162 | |
| function | test_read_file_turns_skips_empty_and_bad_lines |
170 | |
| function | test_read_file_turns_skips_non_prose_rows |
177 | |
| function | test_load_state_missing |
197 | |
| function | test_load_state_invalid |
201 | |
| function | test_load_state_non_dict |
209 | |
| function | test_save_and_load_state_roundtrip |
216 | |
| function | test_count_nodes_missing |
225 | |
| function | test_count_nodes_counts_nonempty |
229 | |
| function | test_needs_full_rebuild_no_state |
235 | |
| function | test_needs_full_rebuild_no_nodes_file |
239 | |
| function | test_needs_full_rebuild_tracked_vanished |
243 | |
| function | test_needs_full_rebuild_shrank |
252 | |
| function | test_needs_full_rebuild_getsize_oserror |
264 | |
| function | test_needs_full_rebuild_false_when_ok |
275 | |
| function | test_sync_no_transcript_dir_returns_zero |
288 | |
| function | test_sync_full_rebuild |
293 | |
| function | test_sync_forced_rebuild |
309 | |
| function | test_sync_incremental_appends |
318 | |
| function | test_query_no_nodes_file |
333 | |
| function | test_query_no_words |
337 | |
| function | test_query_matches_and_sorts |
344 | |
| function | test_query_skips_empty_and_bad_lines |
356 | |
| function | test_query_limit |
366 | |
| function | test_main_syncs_and_prints |
383 |