refactor: replace all cmd.SetArgs to testutil.SetArgs in the same module#18899
refactor: replace all cmd.SetArgs to testutil.SetArgs in the same module#18899levisyin wants to merge 0 commit into
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.SetArgstotestutil.SetArgsinmodule github.com/cosmos/cosmos-sdk.BTW, as we moved wrapped
SetArgsto internal package (See comment), I'm not able to replacecmd.SetArgstotestutil.SetArgsin extracted modules. @julienrbrt Sir, do you have some ideas about how to solve this? Shall we add wrappedSetArgsto all extracted modules?