Code coverage tests

This page documents the degree to which the PARI/GP source code is tested by our public test suite, distributed with the source distribution in directory src/test/. This is measured by the gcov utility; we then process gcov output using the lcov frond-end.

We test a few variants depending on Configure flags on the pari.math.u-bordeaux1.fr machine (x86_64 architecture), and agregate them in the final report:

The target is 90% coverage for all mathematical modules (given that branches depending on DEBUGLEVEL or DEBUGMEM are not covered). This script is run to produce the results below.

LCOV - code coverage report
Current view: top level - language - sumiter.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 16358-a11f489) Lines: 801 995 80.5 %
Date: 2014-04-11 Functions: 63 70 90.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 486 766 63.4 %

Function Name Sort by function name Hit count Sort by hit count
_next 0
_next_i 19345
_next_le 0
_next_le_i 0
_next_lt 0
_next_lt_i 838190
_next_void 0
arith_set 360
copyupto 493838
deriv_eval 20
derivfun 20
derivfun0 10
derivnum 15
derivnum0 10
direuler 20
direuler0 20
err_direuler 5
forcomposite 25
forcomposite_init 25
forcomposite_next 105
fordiv 10
forpari 1772010
forparii 1772010
forprime 105
forprime_init 407
forprime_next 6978588
forstep 1035
forvec 4895
forvec_init 4895
forvec_next 857535
iferrpari 879790
matrice 340
negcmp 0
optimize_chunk 3694687
polzag 25
polzagreel 10
prodeuler 10
prodeuler0 10
prodinf 10
prodinf0 20
prodinf1 10
produit 33660
shift_cache 41103405
sieve_block 645
sieve_init 3694687
somme 700
sumalt 15
sumalt0 25
sumalt2 10
sumdivexpr 40
sumdivmultexpr 30
suminf 15
suminf0 15
sumpos 30
sumpos0 30
sumpos2 0
u_forprime_arith_init 5593754
u_forprime_init 5572114
u_forprime_next 55737651
u_forprime_restrict 30
u_forprime_set_prime_table 4987008
untilpari 158625
vecexpr0 575
vecexpr1 110
vecteur 1659570
vecteursmall 5
vvecteur 360
whilepari 855
zbrent 25
zbrent0 15

Generated by: LCOV version 1.9