Repository navigation
Remove excess nesting - #2326
MichaelChirico wants to merge 1 commit into
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2326 +/- ##
=======================================
Coverage 99.39% 99.39%
=======================================
Files 121 121
Lines 5461 5461
=======================================
Hits 5428 5428
Misses 33 33 ☔ View full report in Codecov by Sentry. |
AshesITR
left a comment
There was a problem hiding this comment.
I'm not sure this actually improves readability. Note the parallelism between patrick::with_parameters_test_that() and testthat::test_that().
difference is test_that("descr", {
...
})vs. because of the parameter arguments with_parameters_test_that(
"descr",
{
...
},
...
) |
|
Yes and that highlights the actual test code very well. |
|
I agree with @AshesITR here—the braced expressions does highlight the test code and draws a parallel with testthat. Is this really flagged as excessive nesting by the new linter? |
|
I can see a similar problem occur with shiny. |
|
Let's discuss exceptions needed in #2302 or its follow-ups. |
Caught by #2302. Follow-up to #2303. Missed before as it got mixed in with
allow_assignment = TRUEfalse positives.