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 21741-70cf009) Lines: 1035 1076 96.2 %
Date: 2018-01-21 06:18:30 Functions: 87 87 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
fordiv 7
fordivfactored 7
prodeuler 7
prodeuler0 7
prodinf 7
prodinf1 7
solvestep0 7
sumalt 7
sumalt2 7
_fordiv 14
_next_void 14
forsquarefreeneg 14
forsquarefreepos 14
prodinf0 14
rfrac_val_deriv 14
sumalt0 14
sumpos2 14
vec_getmf 14
laurentseries 21
laurentseries0 21
sum_init 21
suminf 21
suminf0 21
zbrent0 21
FD 28
forsquarefree 28
negcmp 28
polzag 28
_evalclosprec 35
asympnum 42
asympnum0 42
derivnumk 42
sumdivmultexpr 42
limitnum 49
limitnum0 49
polzag1 49
sumdivexpr 49
forfactoredpos 56
sumpos 56
_next 63
derivfun0 63
eval0 70
sumpos0 70
sumpos_init 70
fun_getmf 77
_next_lt 84
forfactoredneg 84
get_u 91
limit_init 91
solvestep 91
deriv_eval 105
_next_le_i 113
direuler0 126
forfactored 133
_next_le 154
vecexpr1 175
chk_ord 231
vvecteur 490
vecteursmall 763
limitnum_i 777
zbrent 889
derivnum 1008
derivfun 1043
derivfunk 1043
derivnum0 1043
delt 1246
forstep 1484
forvec 7000
forvec_init 7006
binsum 7406
somme 63392
vecexpr0 114786
produit 120134
matrice 136164
_next_i 181432
untilpari 222070
_next_lt_i 1173502
iferrpari 1305829
forvec_next 1355362
whilepari 1768823
vecteur 2325022
copyupto 3407921
forparii 4220948
forpari 4220955
zv_to_ZM 4255531
zv_to_mZM 4255531
Flm2negfact 7001582

Generated by: LCOV version 1.11