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 16962-5a32637) Lines: 802 996 80.5 %
Date: 2014-10-29 Functions: 63 70 90.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 491 774 63.4 %

Function Name Sort by function name Hit count Sort by hit count
_next 0
_next_i 26971
_next_le 0
_next_le_i 0
_next_lt 0
_next_lt_i 1173466
_next_void 0
arith_set 504
copyupto 713070
deriv_eval 14
derivfun 28
derivfun0 7
derivnum 21
derivnum0 21
direuler 21
direuler0 21
err_direuler 7
forcomposite 35
forcomposite_init 35
forcomposite_next 147
fordiv 7
forpari 2516752
forparii 2516752
forprime 140
forprime_init 388
forprime_next 8385933
forstep 1442
forvec 6846
forvec_init 6846
forvec_next 1200437
iferrpari 1231727
matrice 406
negcmp 0
optimize_chunk 5165012
polzag 28
polzagreel 7
prodeuler 7
prodeuler0 7
prodinf 7
prodinf0 14
prodinf1 7
produit 47089
shift_cache 57544767
sieve_block 903
sieve_init 5165012
somme 966
sumalt 14
sumalt0 21
sumalt2 7
sumdivexpr 49
sumdivmultexpr 42
suminf 14
suminf0 14
sumpos 35
sumpos0 35
sumpos2 0
u_forprime_arith_init 7822586
u_forprime_init 7792269
u_forprime_next 77714261
u_forprime_restrict 42
u_forprime_set_prime_table 6974122
untilpari 222068
vecexpr0 840
vecexpr1 154
vecteur 2323092
vecteursmall 7
vvecteur 399
whilepari 1190
zbrent 35
zbrent0 14

Generated by: LCOV version 1.9