• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

JuliaCI / Coverage.jl / 695
75%

Build:
DEFAULT BRANCH: master
Ran 08 Mar 2019 08:16AM UTC
Jobs 3
Files 6
Run time 26s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
695

push

travis-ci

fingolfin
Improve coverage heuristic in function_body_lines

The purpose of function_body_lines is to find functions which are "dead"
(= never executed by test suite), and mark them as code, because Julia's
built-in coverage code does not do that; if we were to rely on it, such
functions would be marked as non-code, and thus they do not show up in
the overall code coverage percentage.

But our current heuristic is too aggressive in so far as that Julia also
sometimes marks code lines as "is not code" in the middle of functions
that are being executed (most likely due to inlining and other
optimizations). If we mark those lines as code, they will show up as
uncovered, with no way for the package author to change this.

With this commit, we refine our heuristic: we only apply it to functions
for which Julia recorded no coverage at all, as before; but if even just
one line in the function body has coverage information, we do not touch
the code lines in it at all.

Some care must be taken to make sure this works right for nested
functions.

234 of 280 relevant lines covered (83.57%)

524.76 hits per line

Jobs
ID Job ID Ran Files Coverage
1 695.1 08 Mar 2019 08:16AM UTC 0
83.62
Travis Job 695.1
2 695.2 08 Mar 2019 08:17AM UTC 0
84.71
Travis Job 695.2
3 695.3 08 Mar 2019 08:16AM UTC 0
84.66
Travis Job 695.3
Source Files on build 695
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #695
  • 79b067e4 on github
  • Prev Build on master (#694)
  • Next Build on master (#697)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc