Orchestrata Ultimate › Tests › Reference › claude › test_intercept_bash_coverage

Tests reference — tests/claude/test_intercept_bash_coverage.py

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

Prose pending.

tests/claude/test_intercept_bash_coverage.py

source · 18 tests · 166 lines

In-process coverage tests for claude/hooks/intercept_bash.py.

Kind Name Line Description
function test_malformed_stdin_emits_empty_object 68
function test_write_text_pattern_is_blocked_with_no_scratch_escape 74
function test_open_w_pattern_is_blocked 80
function test_sed_inplace_is_blocked 85
function test_tee_without_append_is_blocked 91
function test_shell_redirect_is_blocked 97
function test_redirect_into_scratchpad_is_allowed 103
function test_tee_into_scratchpad_is_allowed 107
function test_mixed_repo_and_scratch_redirect_still_blocks 111
function test_rm_is_blocked 116
function test_rm_with_flags_is_blocked 122
function test_unlink_is_blocked 128
function test_rmdir_is_blocked 133
function test_shred_is_blocked 138
function test_destructive_with_claude_redirect_is_blocked 143
function test_claude_dir_redirect_is_blocked 149
function test_ordinary_command_is_allowed 158
function test_empty_command_is_allowed 163