-
-
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
Adding instances for ArraySeq #3273
Adding instances for ArraySeq #3273
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3273 +/- ##
==========================================
+ Coverage 93.08% 93.12% +0.04%
==========================================
Files 376 378 +2
Lines 7428 7516 +88
Branches 196 196
==========================================
+ Hits 6914 6999 +85
- Misses 514 517 +3
Continue to review full report at Codecov.
|
kernel/src/main/scala-2.13+/cats/kernel/instances/ArraySeqInstances.scala
Outdated
Show resolved
Hide resolved
Uhm, I do not understand why this PR decreases the coverture. |
@BalmungSan you can check right here https://codecov.io/gh/typelevel/cats/pull/3273/diff which methods currently aren't covered :) Seems like for most of those you can just add more/different law tests |
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 tackling this
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.
Looks good to me, thanks @BalmungSan!
This is my attempt at adding common instances for ArraySeq.
I am not sure if we could implement more typeclasses and if the tests are ok. Also, many implementations of the methods were borrowed from the Vector and LazySList ones.
So, any feedback is welcome.
Closes #2994
BTW, I have a surgery this Wednesday. So, if reviewers leave feedback and I do not answer them, and some have the motivation and time to finish this PR, I would really appreciate it. Since, probably I won't touch a computer again until the next week.