We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When you pass a method reference to another method, scoverage marks the reference itself as uncovered until you exercise it:
case class Route(path: String, handle: Int => Int) class Server(routes: Seq[Route]) // { ... } class Service { def inc(n: Int) = n + 1 def dec(n: Int) = n - 1 } object Module { val service = new Service val routes = Seq( Route("inc", service.inc), Route("dec", service.dec)) val server = new Server(routes) }
In the example above, service.inc and service.dec are marked as uncovered. Is this related to eta expansion?
service.inc
service.dec
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When you pass a method reference to another method, scoverage marks the reference itself as uncovered until you exercise it:
In the example above,
service.inc
andservice.dec
are marked as uncovered. Is this related to eta expansion?The text was updated successfully, but these errors were encountered: