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

JuliaCI / Coverage.jl / 695 / 3
75%
master: 75%

Build:
DEFAULT BRANCH: master
Ran 08 Mar 2019 08:16AM UTC
Files 6
Run time 0s
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

08 Mar 2019 08:14AM UTC coverage: 84.663% (+2.6%) from 82.036%
695.3

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.

276 of 326 relevant lines covered (84.66%)

138.62 hits per line

Source Files on job 695.3
  • Tree
  • List 0
  • Changed 6
  • Source Changed 2
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 659
  • Travis Job 695.3
  • 79b067e4 on github
  • Prev Job for on master (#694.2)
  • Next Job for on master (#697.1)
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