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 17932-6fdb233) Lines: 1032 1067 96.7 %
Date: 2015-08-02 Functions: 81 81 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 659 801 82.3 %

Function Name Sort by function name Hit count Sort by hit count
_next 63
_next_i 27187
_next_le 154
_next_le_i 113
_next_lt 84
_next_lt_i 1173502
_next_void 14
arith_set 504
asympnum 42
asympnum0 42
binsum 7406
copyupto 4858576
delt 1246
deriv_eval 91
derivfun 1022
derivfun0 56
derivnum 1379
derivnum0 966
direuler 119
direuler0 119
err_direuler 7
extgetmf 91
forcomposite 42
forcomposite_init 42
forcomposite_next 147
fordiv 7
forpari 2536104
forparii 2536097
forprime 175
forprime_init 523
forprime_next 8399960
forstep 1463
forvec 6951
forvec_init 6957
forvec_next 1201117
get_u 91
iferrpari 1235654
limit_init 91
limitnum 49
limitnum0 49
limitnum_i 676
matrice 511
negcmp 28
optimize_chunk 4818440
polzag 28
polzag1 49
prodeuler 7
prodeuler0 7
prodinf 7
prodinf0 14
prodinf1 7
produit 113505
shift_cache 72576329
sieve_block 1169
sieve_init 4818440
somme 1106
sumalt 7
sumalt0 14
sumalt2 7
sumdivexpr 49
sumdivmultexpr 42
suminf 14
suminf0 14
sumpos 56
sumpos0 70
sumpos2 14
sumpos_init 70
u_forprime_arith_init 7549445
u_forprime_init 7518647
u_forprime_next 88476207
u_forprime_restrict 42
u_forprime_set_prime_table 6700880
untilpari 222070
vecexpr0 1519
vecexpr1 175
vecteur 2333371
vecteursmall 42
vvecteur 483
whilepari 17164
zbrent 56
zbrent0 14

Generated by: LCOV version 1.9