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 to exceed 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.12.0 lcov report (development 23171-a5c0ed393) Lines: 1054 1097 96.1 %
Date: 2018-10-20 05:38:07 Functions: 89 91 97.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
_f 0
get_N 0
fordiv 7
fordivfactored 7
prodeuler 7
prodeuler0 7
prodinf 7
prodinf1 7
sumalt2 7
_fordiv 14
_next_void 14
forsquarefreeneg 14
forsquarefreepos 14
rfrac_val_deriv 14
solvestep0 14
sumalt 14
sumpos2 14
laurentseries 21
prodinf0 21
sum_init 21
sumalt0 21
suminf 21
suminf0 21
zbrent0 21
forsquarefree 28
negcmp 28
polzag 28
_evalclosprec 35
laurentseries0 35
FD 42
sumdivmultexpr 42
asympnum 49
polzag1 49
sumdivexpr 49
asympnum0 56
derivnumk 56
forfactoredpos 56
limitnum 56
sumpos 56
_next 63
limitnum0 63
eval0 70
sumpos_init 70
_g 75
sumpos0 77
_next_lt 84
derivfun0 84
forfactoredneg 84
solvestep 98
get_accu 105
get_c 105
get_u 105
limit_init 105
_next_le_i 113
direuler0 126
forfactored 133
deriv_eval 147
_next_le 154
vecexpr1 175
chk_ord 273
vvecteur 490
vecteursmall 763
zbrent 896
limitnum_i 970
derivnum 1029
derivfun 1064
derivfunk 1064
derivnum0 1064
delt 1246
forstep 1491
forvec 7000
forvec_init 7006
binsum 7406
_gi 9465
somme 70154
vecexpr0 115059
produit 120134
matrice 138271
_next_i 181432
untilpari 222070
_next_lt_i 1173502
iferrpari 1306861
forvec_next 1355362
whilepari 1793680
copyupto 2354078
vecteur 2354555
zv_to_ZM 4255531
zv_to_mZM 4255531
forparii 5066606
forpari 5066613
Flm2negfact 7001582

Generated by: LCOV version 1.13