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-bordeaux1.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.8.0 lcov report (development 17774-15dbd24) Lines: 1031 1066 96.7 %
Date: 2015-04-26 Functions: 81 81 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 650 793 82.0 %

Function Name Sort by function name Hit count Sort by hit count
_next 63
_next_i 27167
_next_le 154
_next_le_i 91
_next_lt 84
_next_lt_i 1173480
_next_void 14
arith_set 504
asympnum 28
asympnum0 28
binsum 7119
copyupto 3738576
delt 1246
deriv_eval 35
derivfun 994
derivfun0 28
derivnum 973
derivnum0 966
direuler 119
direuler0 119
err_direuler 7
extgetmf 63
forcomposite 42
forcomposite_init 42
forcomposite_next 147
fordiv 7
forpari 2535968
forparii 2535961
forprime 175
forprime_init 521
forprime_next 8399926
forstep 1456
forvec 6951
forvec_init 6951
forvec_next 1201053
get_u 63
iferrpari 1235668
limit_init 63
limitnum 35
limitnum0 35
limitnum_i 543
matrice 511
negcmp 28
optimize_chunk 4817201
polzag 28
polzag1 49
prodeuler 7
prodeuler0 7
prodinf 7
prodinf0 14
prodinf1 7
produit 113505
shift_cache 70263991
sieve_block 1106
sieve_init 4817201
somme 1106
sumalt 14
sumalt0 21
sumalt2 7
sumdivexpr 49
sumdivmultexpr 42
suminf 14
suminf0 14
sumpos 42
sumpos0 56
sumpos2 14
sumpos_init 56
u_forprime_arith_init 7507366
u_forprime_init 7476568
u_forprime_next 88450923
u_forprime_restrict 42
u_forprime_set_prime_table 6658808
untilpari 222070
vecexpr0 1498
vecexpr1 175
vecteur 2333364
vecteursmall 42
vvecteur 483
whilepari 17164
zbrent 56
zbrent0 14

Generated by: LCOV version 1.9