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
More taps #16
More taps #16
Conversation
Signed-off-by: Albert Pastrana <albert.pastrana@gmail.com>
Signed-off-by: Albert Pastrana <albert.pastrana@gmail.com>
Signed-off-by: Albert Pastrana <albert.pastrana@gmail.com>
Signed-off-by: Albert Pastrana <albert.pastrana@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #16 +/- ##
==========================================
+ Coverage 90.65% 91.11% +0.45%
==========================================
Files 16 16
Lines 214 225 +11
Branches 1 1
==========================================
+ Hits 194 205 +11
Misses 20 20
Continue to review full report at Codecov.
|
1 similar comment
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.
Couple of missing specs, but implementation looks great and these are awesome additions! 👍
@@ -137,6 +137,64 @@ class AsyncResultSpec(implicit ee: ExecutionEnv) extends Specification with Scal | |||
} | |||
} | |||
|
|||
"tap" >> { |
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 like we're missing tests for tapOk
- even though it's an alias, we should probably test it anyway (for coverage and catching accidents).
@@ -123,6 +123,27 @@ class ResultSpec extends Specification with ScalaCheck { | |||
} | |||
} | |||
|
|||
"tapFail" >> { |
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.
Again, probably best to test tapOk
even if it is just an alias.
} | ||
} | ||
} | ||
|
||
"sequence for options" >> { |
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 think you're missing a spec for fromSomething
?
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.
sorry, I pushed this one by mistake, I'll remove the function
f2a7819
to
6478847
Compare
Signed-off-by: Albert Pastrana <albert.pastrana@gmail.com>
6478847
to
4c4cf88
Compare
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.
LGTM 👍
This PR adds some useful functions we have been using as implicits in other projects.
@nathankleyn it would be great if you could take a look at it