Skip to content

chore: remove dead scope_for_prm test helper#115

Open
detail-app[bot] wants to merge 1 commit into
mainfrom
detail/dead-code/chore-remove-dead-scope-for-prm-test-helper-65262d
Open

chore: remove dead scope_for_prm test helper#115
detail-app[bot] wants to merge 1 commit into
mainfrom
detail/dead-code/chore-remove-dead-scope-for-prm-test-helper-65262d

Conversation

@detail-app

@detail-app detail-app Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Remove the scope_for_prm test helper and its two self-referential tests
(scope_fallback_when_empty, scope_uses_server_list_when_present) from
crates/devbox-cli/src/auth.rs.

The #[cfg(test)] fn scope_for_prm had no production callers — the actual
scope-fallback logic is inlined separately in login and does not call the
helper. Its only consumers were two tests that exercised the helper itself,
giving false confidence that the production scope logic was covered.

History


Dead Code PRs can be configured here.

@detail-app
detail-app Bot requested a review from jplock July 24, 2026 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant