-
-
Notifications
You must be signed in to change notification settings - Fork 180
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
Different coverage in free function vs associated methods #238
Comments
I think I've also bumped into this (both https://coveralls.io/builds/24447374/source?filename=src/lib.rs#L27 The full source code: https://github.com/jstasiak/raytracer/blob/818786af2ec9f7622abdb0c4ca1892a90d87a797/src/lib.rs#L19 |
If I had to guess I'd say |
I don't think it's gonna be inlined per se (as the default build is a debug one, I believe? I'm not adding any extra options to |
The inlining does seem to be the cause as confirmed by adding In the |
Closed in favour of #351 |
Tarpaulin 0.8.4 reports different coverage depending on whether the code is inside a free function or an associated method. Specifically, inside a free function a
str::lines
call is not included in the output at all, while in an associated method it is reported as missed. The following is a minimal example, originally found here:Ubuntu 19.04, Linux 5.0.0-20-generic. Issue also occurs on Travis CI.
rustc 1.37.0-nightly (5f9c0448d 2019-06-25)
The text was updated successfully, but these errors were encountered: