-
Notifications
You must be signed in to change notification settings - Fork 90
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
test: optimize test cases of env commands #906
Conversation
WalkthroughThis pull request updates the environment encryption and decryption commands. Both commands now use Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant D as EnvDecryptCommand
participant C as convert.Default
participant F as file.Exists
U->>D: Execute decryption command
D->>C: Retrieve decryption key (with default option)
D->>F: Check if .env file exists
alt File exists
D->>U: Prompt confirmation (default false)
else File missing
D->>D: Proceed with decryption
end
sequenceDiagram
participant U as User
participant E as EnvEncryptCommand
participant C as convert.Default
participant F as file.Exists
U->>E: Execute encryption command
E->>C: Retrieve encryption key (with default option)
E->>F: Check if .env/ .env.encrypted file exists
alt File exists
E->>U: Prompt confirmation (default false)
else File missing
E->>E: Proceed with encryption
end
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 golangci-lint (1.62.2)Error: can't load config: the Go language version (go1.23) used to build golangci-lint is lower than the targeted Go version (1.24.0) 📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (5)
✅ Files skipped from review due to trivial changes (1)
⏰ Context from checks skipped due to timeout of 300000ms (1)
🔇 Additional comments (17)
✨ Finishing Touches
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 using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #906 +/- ##
==========================================
+ Coverage 67.78% 68.01% +0.22%
==========================================
Files 154 154
Lines 10194 10191 -3
==========================================
+ Hits 6910 6931 +21
+ Misses 2951 2934 -17
+ Partials 333 326 -7 ☔ View full report in Codecov by Sentry. |
📑 Description
Summary by CodeRabbit
New Features
Chores
✅ Checks