Skip to content

test(cli): add coverage for artifact/classifier helpers#823

Merged
EffortlessSteven merged 2 commits into
mainfrom
codex/improve-code-coverage-qgvzo9
May 19, 2026
Merged

test(cli): add coverage for artifact/classifier helpers#823
EffortlessSteven merged 2 commits into
mainfrom
codex/improve-code-coverage-qgvzo9

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Motivation

  • Improve code coverage for CLI reporting helpers and artifact classification logic used by bundle inspection and audit summaries to reduce the risk of silent regressions.
  • Exercise branch outcomes for formatter helpers and scanner-safe/runtime classification predicates so summary rendering and posture checks remain correct.

Description

  • Add helper_formatters_cover_all_branches unit test to exercise yes_no_unknown, yes_no, and count_or_unknown branch behaviors in crates/uselesskey-cli/src/main.rs.
  • Add artifact_material_classifiers_follow_scanner_posture unit test to validate bundle_artifact_contains_private_key_material and bundle_artifact_contains_symmetric_secret_material behavior across scanner-safe and runtime artifact states.
  • Update test initializers to populate BundleArtifactRecord fields required by the struct (profile and lanes) used in the new tests, without changing production logic.

Testing

  • Ran cargo test -p uselesskey-cli which executed the unit and integration test suite for the CLI package and completed successfully with all tests passing.
  • New tests are included in the crates/uselesskey-cli/src/main.rs test module and were validated as part of the test run.

Codex Task

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented May 18, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@EffortlessSteven has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 7 minutes and 2 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: cfc54cd1-1cf5-4ba6-bc95-7f04716bdee0

📥 Commits

Reviewing files that changed from the base of the PR and between 77f9f0b and 0f7db1b.

📒 Files selected for processing (1)
  • crates/uselesskey-cli/src/main.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/improve-code-coverage-qgvzo9

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@EffortlessSteven EffortlessSteven merged commit 64cf25c into main May 19, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant