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 18616-fe48336) Lines: 1010 1043 96.8 %
Date: 2016-02-14 Functions: 81 81 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 645 793 81.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 6151728
delt 1246
deriv_eval 91
derivfun 1022
derivfun0 56
derivnum 1379
derivnum0 966
direuler0 133
extgetmf 91
forcomposite 42
forcomposite_init 42
forcomposite_next 147
fordiv 7
forpari 3695266
forparii 3695260
forprime 175
forprime_init 432
forprime_next 8399512
forstep 1477
forvec 6951
forvec_init 6957
forvec_next 1201117
get_u 91
iferrpari 1235984
limit_init 91
limitnum 49
limitnum0 49
limitnum_i 676
matrice 511
negcmp 28
optimize_chunk 5052230
polzag 28
polzag1 49
prodeuler 7
prodeuler0 7
prodinf 7
prodinf0 14
prodinf1 7
produit 142674
shift_cache 72576329
sieve_block 1169
sieve_init 5052230
solvestep 84
solvestep0 7
somme 1113
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 10960155
u_forprime_init 10929455
u_forprime_next 159888873
u_forprime_restrict 42
u_forprime_set_prime_table 10111282
untilpari 222070
vecexpr0 7553
vecexpr1 175
vecteur 2338264
vecteursmall 42
vvecteur 483
whilepari 1169651
zbrent 1015
zbrent0 21

Generated by: LCOV version 1.9