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

Better Chain Arbitrary #2420

Merged
merged 2 commits into from
Aug 18, 2018
Merged

Conversation

LukaJCB
Copy link
Member

@LukaJCB LukaJCB commented Aug 17, 2018

This should fix the concerns @johnynek had in #2371

Also optimizes the Chain.apply builder :)

@LukaJCB LukaJCB requested a review from johnynek August 17, 2018 10:37
@LukaJCB LukaJCB added this to the 1.3 milestone Aug 17, 2018
@LukaJCB
Copy link
Member Author

LukaJCB commented Aug 17, 2018

Seems it has already caught at least one bug 😄

@LukaJCB
Copy link
Member Author

LukaJCB commented Aug 18, 2018

The small bug in uncons has been fixed, thanks a lot to @johnynek for pushing for the better arbitrary instance :)

@codecov-io
Copy link

codecov-io commented Aug 18, 2018

Codecov Report

Merging #2420 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2420      +/-   ##
==========================================
+ Coverage    95.2%   95.22%   +0.01%     
==========================================
  Files         351      351              
  Lines        6366     6368       +2     
  Branches      280      279       -1     
==========================================
+ Hits         6061     6064       +3     
+ Misses        305      304       -1
Impacted Files Coverage Δ
core/src/main/scala/cats/data/Chain.scala 97.42% <100%> (+0.32%) ⬆️
...rc/main/scala/cats/laws/discipline/Arbitrary.scala 99.17% <100%> (+0.07%) ⬆️

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 d878c49...f8ee6cf. Read the comment docs.

Copy link
Contributor

@kailuowang kailuowang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@LukaJCB LukaJCB requested a review from ceedubs August 18, 2018 14:18
Copy link
Contributor

@johnynek johnynek 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 taking!

@LukaJCB
Copy link
Member Author

LukaJCB commented Aug 18, 2018

Merging with two sign-offs :)

@LukaJCB LukaJCB merged commit 84e9641 into typelevel:master Aug 18, 2018
@ceedubs
Copy link
Contributor

ceedubs commented Aug 19, 2018

Sorry I didn't get to the review @LukaJCB; I was on a plane. I'll submit some PRs that I crafted up while I was on it though :)

catostrophe pushed a commit to catostrophe/cats that referenced this pull request Sep 15, 2018
* Better Chain Arbitrary

* Fix bug in uncons
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.

5 participants