-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Issue 2304: Missing functions for RWST #3278
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3278 +/- ##
==========================================
+ Coverage 92.95% 93.14% +0.19%
==========================================
Files 377 378 +1
Lines 7550 7576 +26
Branches 193 203 +10
==========================================
+ Hits 7018 7057 +39
+ Misses 532 519 -13
Continue to review full report at Codecov.
|
Thanks @barambani! |
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.
One minor comment about the unrelated change, but otherwise looks good to me!
@@ -151,7 +151,7 @@ abstract class FoldableSuite[F[_]: Foldable](name: String)(implicit ArbFInt: Arb | |||
fa.collectFold(pf) should ===(fa.toList.collect(pf).fold(m.empty)(m.combine)) | |||
|
|||
def g(a: String): Option[String] = Some(a).filter(f) | |||
fa.collectSomeFold(g) should ===(fa.toList.filter(f).fold(m.empty)(m.combine)) | |||
fa.collectFoldSome(g) should ===(fa.toList.filter(f).fold(m.empty)(m.combine)) |
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.
I'd intentionally left this testing the deprecated version for the sake of coverage and safety (I got bitten pretty badly by an untested deprecated method in Circe 0.12.0). I think we're probably okay changing this instance now, but we should have a policy for what to do in these cases.
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.
I didn't know it, happy to revert. It's not relevant for the issue. I will comment there.
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.
Thanks! (I should have done that already).
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.
thanks for the review.
addresses the last bit of #2304