Orchestrata Ultimate › Tests › Reference › claude › test_unshipped_guard_coverage
Tests reference — tests/claude/test_unshipped_guard_coverage.py
Module of tests/claude, split out because the directory page would be too large.
Prose pending.
tests/claude/test_unshipped_guard_coverage.py
source · 18 tests · 277 lines
Coverage tests for
claude/hooks/unshipped_guard.py.
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_git_returns_stdout_on_success |
113 | |
| function | test_git_returns_none_when_git_fails |
118 | |
| function | test_git_returns_none_outside_a_repo |
122 | |
| function | test_unshipped_without_a_git_dir_is_none |
129 | |
| function | test_unshipped_without_an_upstream_is_none |
133 | |
| function | test_unshipped_detached_head_is_none |
139 | |
| function | test_unshipped_zero_ahead_is_none |
145 | |
| function | test_unshipped_reports_local_only_commits |
149 | |
| function | test_empty_argv_is_not_executing |
160 | |
| function | test_argv0_resolving_to_a_target_is_executing |
164 | |
| function | test_long_option_is_skipped_to_reach_the_script_operand |
169 | An option word that is not -c must not disqualify the argv; the |
| function | test_shell_with_no_script_operand_is_not_executing |
181 | |
| function | test_invalid_json_exits_zero |
188 | |
| function | test_stop_hook_active_short_circuits |
194 | |
| function | test_no_watched_repos_means_nothing_pending |
201 | |
| function | test_a_repo_that_raises_is_skipped_not_fatal |
211 | unshipped(None) raises TypeError inside main's per-repo try — the guard |
| function | test_unpushed_commits_block_and_name_the_remedy |
223 | |
| function | test_an_in_flight_ship_suppresses_the_block |
242 | When the remedy is already running, blocking would loop — the guard |