-
Notifications
You must be signed in to change notification settings - Fork 69
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
Delete unused String()
methods
#156
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #156 +/- ##
==========================================
+ Coverage 89.01% 89.38% +0.37%
==========================================
Files 55 55
Lines 9176 9138 -38
==========================================
Hits 8168 8168
+ Misses 841 803 -38
Partials 167 167 ☔ View full report in Codecov by Sentry. |
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.
Dead code removal, LGTM :) I only have one question on MinimalString
:)
@@ -137,11 +130,6 @@ func (r *okRead) effectIfFalse(*RootAssertionNode) { | |||
|
|||
func (*okRead) isNoop() bool { return false } | |||
|
|||
func (r *okRead) String() string { | |||
return fmt.Sprintf("<okRead: {value: %s, ok: %s}>", | |||
r.value.MinimalString(), r.ok.MinimalString()) |
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.
qq: Are we still using MinimalString
?
78686b5
to
f5ac200
Compare
This pull request introduces support for the `ok` form in both user-defined and library functions and methods. The implementation addresses false positives, such as those identified in issue #77. Currently, the feature is designed to handle explicit boolean returns, specifically in the form of `return r0, r1, ..., true`. Support for expression-based returns (e.g., `return r0, r1, ..., flag` or `return r0, r1, ..., isOk()`) is tricky, as tracking boolean types is currently not supported in NilAway. We can handle this scenario in the future. [Closes #77 ] [Depends on #156 ]
This PR performs code cleanup by deleting unused
String()
methods.