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 17713-366b110) Lines: 1031 1066 96.7 %
Date: 2015-04-01 Functions: 81 81 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 649 793 81.8 %

Function Name Sort by function name Hit count Sort by hit count
_next 63
_next_i 27167
_next_le 154
_next_le_i 91
_next_lt 84
_next_lt_i 1173480
_next_void 14
arith_set 504
asympnum 28
asympnum0 28
binsum 7119
copyupto 3737806
delt 1246
deriv_eval 35
derivfun 49
derivfun0 28
derivnum 28
derivnum0 21
direuler 119
direuler0 119
err_direuler 7
extgetmf 63
forcomposite 42
forcomposite_init 42
forcomposite_next 147
fordiv 7
forpari 2535490
forparii 2535484
forprime 175
forprime_init 521
forprime_next 8399919
forstep 1456
forvec 6951
forvec_init 6951
forvec_next 1201053
get_u 63
iferrpari 1235664
limit_init 63
limitnum 35
limitnum0 35
limitnum_i 543
matrice 511
negcmp 28
optimize_chunk 4817162
polzag 28
polzag1 49
prodeuler 7
prodeuler0 7
prodinf 7
prodinf0 14
prodinf1 7
produit 47089
shift_cache 70263991
sieve_block 1106
sieve_init 4817162
somme 1106
sumalt 14
sumalt0 21
sumalt2 7
sumdivexpr 49
sumdivmultexpr 42
suminf 14
suminf0 14
sumpos 42
sumpos0 56
sumpos2 14
sumpos_init 56
u_forprime_arith_init 7506832
u_forprime_init 7476034
u_forprime_next 88546121
u_forprime_restrict 42
u_forprime_set_prime_table 6658274
untilpari 222070
vecexpr0 1498
vecexpr1 175
vecteur 2333294
vecteursmall 42
vvecteur 483
whilepari 17164
zbrent 56
zbrent0 14

Generated by: LCOV version 1.9