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-bordeaux.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.10.0 lcov report (development 20079-8a65571) Lines: 891 932 95.6 %
Date: 2017-01-18 05:50:33 Functions: 71 71 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FD 21
_next 63
_next_i 130542
_next_le 154
_next_le_i 113
_next_lt 84
_next_lt_i 1173502
_next_void 14
asympnum 42
asympnum0 42
binsum 7406
chk_ord 189
copyupto 2291469
delt 1246
deriv_eval 105
derivfun 1029
derivfun0 63
derivfunk 1008
derivnum 1008
derivnum0 1008
derivnumk 35
direuler0 126
fordiv 7
forpari 4144301
forparii 4144295
forstep 1484
forvec 6979
forvec_init 6985
forvec_next 1304472
fun_getmf 77
get_u 91
iferrpari 1249977
limit_init 91
limitnum 49
limitnum0 49
limitnum_i 750
matrice 616
negcmp 28
polzag 28
polzag1 49
prodeuler 7
prodeuler0 7
prodinf 7
prodinf0 14
prodinf1 7
produit 120316
solvestep 91
solvestep0 7
somme 3829
sum_init 21
sumalt 7
sumalt0 14
sumalt2 7
sumdivexpr 49
sumdivmultexpr 42
suminf 21
suminf0 21
sumpos 56
sumpos0 70
sumpos2 14
sumpos_init 70
untilpari 222070
vec_getmf 14
vecexpr0 115031
vecexpr1 175
vecteur 2328583
vecteursmall 42
vvecteur 483
whilepari 1468397
zbrent 1050
zbrent0 21

Generated by: LCOV version 1.11