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

Adds tests for some client handlers #27

Merged
merged 2 commits into from
Jul 6, 2017

Conversation

juanpedromoreno
Copy link
Member

@juanpedromoreno juanpedromoreno commented Jul 6, 2017

Also, restructures the test suite classes to use them across client and server tests.

Related to #24

Copy link
Contributor

@fedefernandez fedefernandez 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!


trait RpcBaseTestSuite extends WordSpec with Matchers with OneInstancePerTest with MockFactory {

sealed trait Syntax {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why sealed?

Copy link
Member Author

@juanpedromoreno juanpedromoreno Jul 6, 2017

Choose a reason for hiding this comment

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

It's not a big thing, I marked as sealed because it's already associated with the Helper trait below, being sealed it's not composable in other ways outside of this file.

@juanpedromoreno juanpedromoreno merged commit d8dde94 into master Jul 6, 2017
@juanpedromoreno juanpedromoreno deleted the jp-client-definitions-tests branch July 6, 2017 21:37
@codecov-io
Copy link

Codecov Report

Merging #27 into master will increase coverage by 4.21%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #27      +/-   ##
==========================================
+ Coverage   13.85%   18.07%   +4.21%     
==========================================
  Files          12       12              
  Lines         166      166              
  Branches        1        1              
==========================================
+ Hits           23       30       +7     
+ Misses        143      136       -7
Impacted Files Coverage Δ
rpc/src/main/scala/client/implicits.scala 100% <0%> (+100%) ⬆️
...c/main/scala/client/handlers/ChannelMHandler.scala 100% <0%> (+100%) ⬆️

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 62c61af...6f9c114. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants