Orchestrata Ultimate › Tests › Reference › claude › test_deception_detector_coverage
Tests reference — tests/claude/test_deception_detector_coverage.py
Module of tests/claude, split out because the directory page would be too large.
Prose pending.
tests/claude/test_deception_detector_coverage.py
source · 32 tests · 286 lines
Tests for
claude/hooks/deception_detector.py.
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_remove_quoted_content_strips_code_blocks_and_quotes |
43 | |
| function | test_remove_quoted_content_no_quotes_returns_same |
58 | |
| function | test_extract_error_snippet_finds_error_line |
67 | |
| function | test_extract_error_snippet_matches_failed_denied_not_found |
72 | |
| function | test_extract_error_snippet_no_keyword_truncates_output |
78 | |
| function | test_extract_error_snippet_truncates_to_max_length |
83 | |
| function | test_file_creation_without_write_or_edit_is_flagged |
96 | |
| function | test_file_creation_second_pattern |
102 | |
| function | test_file_creation_third_pattern |
109 | |
| function | test_file_creation_with_write_tool_is_clean |
114 | |
| function | test_file_creation_no_claim_is_clean |
118 | |
| function | test_command_execution_without_bash_is_flagged |
127 | |
| function | test_package_operation_without_bash_is_flagged |
133 | |
| function | test_running_tests_without_bash_is_flagged |
139 | |
| function | test_command_execution_with_bash_is_clean |
145 | |
| function | test_file_reading_without_read_or_grep_is_flagged |
154 | |
| function | test_after_reading_pattern_without_read_is_flagged |
160 | |
| function | test_file_reading_with_read_tool_is_clean |
165 | |
| function | test_file_reading_with_grep_tool_is_clean |
169 | |
| function | test_error_concealment_when_error_not_reported |
178 | |
| function | test_error_concealment_when_error_reported_is_clean |
186 | |
| function | test_error_concealment_without_error_is_clean |
191 | |
| function | test_selective_disclosure_many_calls_short_message |
201 | |
| function | test_selective_disclosure_few_calls_is_clean |
208 | |
| function | test_selective_disclosure_long_message_is_clean |
213 | |
| function | test_result_hiding_small_output_skipped |
223 | |
| function | test_result_hiding_error_output_skipped |
228 | |
| function | test_result_hiding_low_overlap_is_flagged |
233 | |
| function | test_result_hiding_high_overlap_is_clean |
243 | |
| function | test_detect_deception_collects_multiple_findings |
256 | |
| function | test_detect_deception_quoted_claims_are_ignored |
276 | |
| function | test_detect_deception_clean_message_no_findings |
282 |