-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Code coverage user mode regression in 1.2.0 for inlined code #36462
Comments
A similar example that came up on Slack, looks like same issue, and it is still an issue in Julia 1.5 and master (3d04d15):
Lines are marked correctly with |
Here is the example with travis and codecov https://github.com/racinmat/CoveragePackage https://codecov.io/gh/racinmat/CoveragePackage/src/master/src/CoveragePackage.jl |
Fixed by #37243. The commit didn't have the correct keyword to close this. |
At some point in 1.2.0 the coverage decision on whether a code is user mode ignores the module the code is inlined from.
Running
on 1.1.1 produces the same coverage result for user and all mode but on 1.2.0 the user mode misses one constructor call and all lines in
deepcopy_internal
.@code_typed deepcopy(A(2))
and@code_llvm deepcopy(A(2))
confirms that thedeepcopy_internal
method is correctly inlined and that on 1.2.0 with user mode the store for coverage is missing fordeepcopy_internal
.The text was updated successfully, but these errors were encountered: