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 16375-9f41ae0) Lines: 801 995 80.5 %
Date: 2014-04-19 Functions: 63 70 90.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 486 766 63.4 %

Function Name Sort by function name Hit count Sort by hit count
_next 0
_next_i 27083
_next_le 0
_next_le_i 0
_next_lt 0
_next_lt_i 1173466
_next_void 0
arith_set 504
copyupto 678234
deriv_eval 28
derivfun 28
derivfun0 14
derivnum 21
derivnum0 14
direuler 28
direuler0 28
err_direuler 7
forcomposite 35
forcomposite_init 35
forcomposite_next 147
fordiv 14
forpari 2480814
forparii 2480814
forprime 147
forprime_init 569
forprime_next 8457930
forstep 1449
forvec 6853
forvec_init 6853
forvec_next 1200549
iferrpari 1231706
matrice 478
negcmp 0
optimize_chunk 5174407
polzag 35
polzagreel 14
prodeuler 14
prodeuler0 14
prodinf 14
prodinf0 28
prodinf1 14
produit 47124
shift_cache 57544767
sieve_block 903
sieve_init 5174407
somme 980
sumalt 21
sumalt0 35
sumalt2 14
sumdivexpr 56
sumdivmultexpr 42
suminf 21
suminf0 21
sumpos 42
sumpos0 42
sumpos2 0
u_forprime_arith_init 7833097
u_forprime_init 7802801
u_forprime_next 78042325
u_forprime_restrict 42
u_forprime_set_prime_table 6984611
untilpari 222075
vecexpr0 805
vecexpr1 154
vecteur 2323302
vecteursmall 7
vvecteur 504
whilepari 1197
zbrent 35
zbrent0 21

Generated by: LCOV version 1.9