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.1 lcov report (development 22726-9e20c6a88) Lines: 1025 1068 96.0 %
Date: 2018-06-23 05:36:28 Functions: 87 87 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FD 28
Flm2negfact 7001582
_evalclosprec 35
_fordiv 14
_next 63
_next_i 181432
_next_le 154
_next_le_i 113
_next_lt 84
_next_lt_i 1173502
_next_void 14
asympnum 49
asympnum0 49
binsum 7406
chk_ord 231
copyupto 3467974
delt 1246
deriv_eval 147
derivfun 1064
derivfun0 84
derivfunk 1043
derivnum 1029
derivnum0 1043
derivnumk 42
direuler0 126
eval0 70
fordiv 7
fordivfactored 7
forfactored 133
forfactoredneg 84
forfactoredpos 56
forpari 4926454
forparii 4926445
forsquarefree 28
forsquarefreeneg 14
forsquarefreepos 14
forstep 1484
forvec 7000
forvec_init 7006
forvec_next 1355362
fun_getmf 84
get_u 98
iferrpari 1306813
laurentseries 21
laurentseries0 21
limit_init 98
limitnum 49
limitnum0 49
limitnum_i 784
matrice 138271
negcmp 28
polzag 28
polzag1 49
prodeuler 7
prodeuler0 7
prodinf 7
prodinf0 14
prodinf1 7
produit 120134
rfrac_val_deriv 14
solvestep 91
solvestep0 7
somme 69594
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 115052
vecexpr1 175
vecteur 2354506
vecteursmall 763
vvecteur 490
whilepari 1793680
zbrent 889
zbrent0 21
zv_to_ZM 4255531
zv_to_mZM 4255531

Generated by: LCOV version 1.13