Repository navigation
reduce nesting where possible - #2303
Conversation
| if (x > 10.0) { | ||
| if (x > 20.0) { | ||
| x <- x / 2.0 | ||
| return(x) |
There was a problem hiding this comment.
maybe it's preferable to delete this file? Why do we keep it here... it's used in two tests, shouldn't we prefer to write out the code directly in those tests?
There was a problem hiding this comment.
Yes, I agree. We can either directly include this code in tests or move this file somewhere to the tests folder and use it from there.
There was a problem hiding this comment.
I would vote for ditching the file.
We can also lower the cyclocomp threshold in the tests to make the test code smaller.
There was a problem hiding this comment.
Reminded me I forgot to push the edit I made locally
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2303 +/- ##
=======================================
Coverage 99.40% 99.40%
=======================================
Files 117 117
Lines 5334 5334
=======================================
Hits 5302 5302
Misses 32 32 ☔ View full report in Codecov by Sentry. |
Uncovered by #2302