-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: replace all cmd.SetArgs to testutil.SetArgs in the same module #18899
Conversation
WalkthroughThe overarching change is a refactoring of test code across several files. The update involves standardizing the way command-line arguments are set in tests by replacing the direct use of Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Yes, this is good. We want to avoid to add additional SDK imports. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
5547030
to
b947b02
Compare
Close this and I will reopen a new one these days |
Description
Refer to #18876 .
Replacing all
cmd.SetArgs
totestutil.SetArgs
inmodule github.com/cosmos/cosmos-sdk
.BTW, as we moved wrapped
SetArgs
to internal package (See comment), I'm not able to replacecmd.SetArgs
totestutil.SetArgs
in extracted modules. @julienrbrt Sir, do you have some ideas about how to solve this? Shall we add wrappedSetArgs
to all extracted modules?