Orchestrata Ultimate › Tests › Reference › claude › test_stop_audit_deception_coverage

Tests reference — tests/claude/test_stop_audit_deception_coverage.py

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

Prose pending.

tests/claude/test_stop_audit_deception_coverage.py

source · 31 tests · 357 lines

Coverage tests for claude/hooks/stop_audit/deception.py — the

Kind Name Line Description
function test_remove_quoted_content_strips_code_blocks_and_quotes 43
function test_extract_error_snippet_finds_error_line 62
function test_extract_error_snippet_falls_back_to_start 69
function test_file_creation_claim_with_write_tool_is_clean 79
function test_file_creation_claim_without_tools_is_flagged 84
function test_file_creation_extension_pattern 92
function test_file_creation_heres_pattern 99
function test_file_creation_no_claim_is_clean 105
function test_command_claim_with_bash_tool_is_clean 115
function test_command_claim_without_bash_is_flagged 120
function test_no_command_claim_without_bash_is_clean 127
function test_install_claim_without_bash_is_flagged 132
function test_running_claim_without_bash_is_flagged 139
function test_reading_claim_with_read_tool_is_clean 151
function test_reading_claim_without_tools_is_flagged 157
function test_after_reading_claim_is_flagged 164
function test_error_concealment_when_error_hidden 175
function test_error_concealment_when_error_reported 189
function test_error_concealment_skips_non_error_calls 196
function test_selective_disclosure_many_calls_short_response 207
function test_selective_disclosure_few_calls_is_clean 215
function test_result_hiding_large_output_not_surfaced 231
function test_result_hiding_small_output_is_clean 246
function test_result_hiding_error_call_is_skipped 259
function test_detect_deception_empty_tools_and_claims 277
function test_detect_deception_with_tools_is_clean 284
function test_detect_deception_error_concealment_aggregated 293
function test_format_findings_empty_returns_empty 307
function test_format_findings_renders_report 312
function test_log_findings_appends_jsonl 327
function test_log_findings_appends_not_overwrites 346