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 20459-9710128) Lines: 902 943 95.7 %
Date: 2017-04-28 05:33:48 Functions: 72 72 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FD 24
_next 54
_next_i 155516
_next_le 132
_next_le_i 100
_next_lt 72
_next_lt_i 1005862
_next_void 12
asympnum 36
asympnum0 36
binsum 6348
chk_ord 198
copyupto 1938742
delt 1068
deriv_eval 90
derivfun 894
derivfun0 54
derivfunk 894
derivnum 864
derivnum0 894
derivnumk 36
direuler0 108
fordiv 6
forpari 3555610
forparii 3555604
forstep 1272
forvec 6000
forvec_init 6006
forvec_next 1161748
fun_getmf 66
get_u 78
iferrpari 1071473
limit_init 78
limitnum 42
limitnum0 42
limitnum_i 666
matrice 1068
negcmp 24
polzag 24
polzag1 42
prodeuler 6
prodeuler0 6
prodinf 6
prodinf0 12
prodinf1 6
produit 102984
rfrac_val_deriv 12
solvestep 78
solvestep0 6
somme 47406
sum_init 18
sumalt 6
sumalt0 12
sumalt2 6
sumdivexpr 42
sumdivmultexpr 36
suminf 18
suminf0 18
sumpos 48
sumpos0 60
sumpos2 12
sumpos_init 60
untilpari 190346
vec_getmf 12
vecexpr0 90882
vecexpr1 150
vecteur 1992216
vecteursmall 936
vvecteur 414
whilepari 1258116
zbrent 720
zbrent0 18

Generated by: LCOV version 1.11