-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Coverage generated for inlined Predef function #15791
Comments
I think it would be good to report calls to the standard library (and to any library) as covered, even if they're not in the project's codebase. |
Most probably not on sbt plugin side, but in the core module. But previously they stated that will not fix it at least for Macro libraries scoverage/scalac-scoverage-plugin#474 This case is not purely macro, but an inline. Though it is could be questioned if inlined parts should be reported with external source reference if this is an actual code "placed" elsewhere. Similarly with macro code. An option to hide this behind some configuration key would be appreciated I believe as in some cases people might don't want the coverage info from sources they don't own. |
Compiler version
3.2.0-RC3
Minimized code
The
assert
function is part of the Scala 3 library atscala.runtime.stdLibPatches.Predef
and has this definition:Output
scoverage.coverage
contains entries forlibrary/src/scala/runtime/stdLibPatches/Predef.scala
.As a result
sbt coverageReport
fails with the following error:Expectation
No coverage entries should be generated for the Predef file, just like all other files in the Scala library.
This issue seems to be related to #15490.
The text was updated successfully, but these errors were encountered: