-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
fix(action): Add many validations for setvar #747
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## v3/dev #747 +/- ##
==========================================
- Coverage 81.89% 81.87% -0.02%
==========================================
Files 152 152
Lines 8345 8359 +14
==========================================
+ Hits 6834 6844 +10
- Misses 1290 1292 +2
- Partials 221 223 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
Co-authored-by: José Carlos Chávez <[email protected]>
Co-authored-by: José Carlos Chávez <[email protected]>
Co-authored-by: José Carlos Chávez <[email protected]>
@@ -12,4 +27,22 @@ func TestSetvarInit(t *testing.T) { | |||
t.Error("expected error ErrMissingArguments") | |||
} | |||
}) | |||
t.Run("non-map variable", func(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice
Setvar wasn't doing many validations, and it was returning panics. Now it only allows TX as we don't support any other mutable variable