Skip to content
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

Merged
merged 6 commits into from
Jan 29, 2020
Merged

Adding instances for ArraySeq #3273

merged 6 commits into from
Jan 29, 2020

Conversation

BalmungSan
Copy link
Contributor

@BalmungSan BalmungSan commented Jan 28, 2020

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.

@codecov-io
Copy link

codecov-io commented Jan 28, 2020

Codecov Report

Merging #3273 into master will increase coverage by 0.04%.
The diff coverage is 96.59%.

Impacted file tree graph

@@            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
Flag Coverage Δ
#scala_version_212 93.41% <ø> (ø) ⬆️
#scala_version_213 92.9% <96.59%> (+0.05%) ⬆️
Impacted Files Coverage Δ
...src/main/scala-2.13+/cats/instances/arraySeq.scala 100% <100%> (ø)
....13+/cats/kernel/instances/ArraySeqInstances.scala 88.88% <88.88%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 93ebced...0ab2b59. Read the comment docs.

@BalmungSan BalmungSan marked this pull request as ready for review January 28, 2020 17:50
@BalmungSan BalmungSan changed the title WIP: Adding instances for ArraySeq Adding instances for ArraySeq Jan 28, 2020
@BalmungSan
Copy link
Contributor Author

Uhm, I do not understand why this PR decreases the coverture.
Did I missed something in the tests?

@LukaJCB
Copy link
Member

LukaJCB commented Jan 28, 2020

@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

Copy link
Member

@LukaJCB LukaJCB left a 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

@travisbrown travisbrown self-requested a review January 29, 2020 07:14
Copy link
Contributor

@travisbrown travisbrown left a 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!

@LukaJCB LukaJCB merged commit e9ff056 into typelevel:master Jan 29, 2020
@BalmungSan BalmungSan deleted the adding-arrayseq-instances branch January 29, 2020 19:03
@travisbrown travisbrown added this to the 2.2.0-M1 milestone Jan 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Functor / Monad instance for ArraySeq
4 participants