Repository navigation
Add a third fuzzer for @/$ equivalency - #2821
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2821 +/- ##
=======================================
Coverage 99.27% 99.27%
=======================================
Files 128 128
Lines 7165 7188 +23
=======================================
+ Hits 7113 7136 +23
Misses 52 52 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
AshesITR
reviewed
Jul 24, 2025
MichaelChirico
commented
Jul 24, 2025
MichaelChirico
commented
Jul 24, 2025
MichaelChirico
commented
Jul 24, 2025
AshesITR
reviewed
Jul 24, 2025
AshesITR
reviewed
Jul 24, 2025
MichaelChirico
commented
Jul 24, 2025
AshesITR
reviewed
Jul 25, 2025
| } else { | ||
| res <- function_call_cache[names(function_call_cache) %in% function_names] | ||
| } | ||
| if (include_s4_slots) { |
Collaborator
There was a problem hiding this comment.
Since we have 4 branches anyway, we might as well make them parallel, WDYT?
if (!is.null(function_names)) {
if (include_s4_slots) {
res <- combine_nodesets(function_call_cache, s4_slot_cache)
} else {
res <- function_call_cache
}
} else {
if (include_s4_slots) {
res <- combine_nodesets(
function_call_cache[names(function_call_cache) %in% function_names],
s4_slot_cache[names(s4_slot_cache) %in% function_names]
)
} else {
res <- function_call_cache[names(function_call_cache) %in% function_names]
}
}
Collaborator
Author
There was a problem hiding this comment.
Works for me! The only downside I saw was repeating the clutter-ish names(function_call_cache) %in% function_names, so I pulled that into a variable. I think that also saves us the "embarassment" of having to disable unnecessary_nesting_linter() which is not equipped to allow "highly parallel" if/else structures like that.
AshesITR
approved these changes
Jul 26, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #2191 -- continuing #2819. Also progress on #2737.
This one caught a pretty big gap in our current linter logic, as noted in #2820. Those are addressed here.
I left the new
include_s4_slots=FALSEby default since apparentlyTRUEis only needed in one place to pass the current fuzz suite.