Skip to content

test: cover root and gen command config wiring#65

Open
Peyton-Spencer wants to merge 1 commit intomainfrom
ocpeyton/root-command-tests
Open

test: cover root and gen command config wiring#65
Peyton-Spencer wants to merge 1 commit intomainfrom
ocpeyton/root-command-tests

Conversation

@Peyton-Spencer
Copy link
Copy Markdown
Contributor

Summary

  • add root command coverage for af defaults, subcommand wiring, and log Viper binding
  • add gen command coverage for max-line-len defaults, parsing, and prompts registration
  • refactor CLI bootstrap to build the root command through a helper so tests can exercise the real wiring without mutating global state

Testing

  • go test ./...

Add focused CLI tests for the root and gen commands so flag defaults, Viper bindings, and subcommand registration stay covered as the command tree evolves.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 1, 2026

Warning

Rate limit exceeded

@Peyton-Spencer has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 21 minutes and 13 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 21 minutes and 13 seconds.

⌛ 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: defaults

Review profile: CHILL

Plan: Pro

Run ID: a1492439-c592-41ab-b305-199d5b595f18

📥 Commits

Reviewing files that changed from the base of the PR and between fe6c8d4 and ccbdd3f.

⛔ Files ignored due to path filters (1)
  • cmd/af/gen/gen_test.go is excluded by !**/gen/**
📒 Files selected for processing (2)
  • cmd/af/main.go
  • cmd/af/main_test.go
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ocpeyton/root-command-tests

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant