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 17110-9967e23) Lines: 802 996 80.5 %
Date: 2014-11-26 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 19265
_next_le 0
_next_le_i 0
_next_lt 0
_next_lt_i 838190
_next_void 0
arith_set 360
copyupto 518980
deriv_eval 10
derivfun 20
derivfun0 5
derivnum 15
derivnum0 15
direuler 15
direuler0 15
err_direuler 5
forcomposite 25
forcomposite_init 25
forcomposite_next 105
fordiv 5
forpari 1810205
forparii 1810205
forprime 105
forprime_init 288
forprime_next 6929152
forstep 1030
forvec 4890
forvec_init 4890
forvec_next 857455
iferrpari 879850
matrice 295
negcmp 0
optimize_chunk 3483263
polzag 20
polzagreel 5
prodeuler 5
prodeuler0 5
prodinf 5
prodinf0 10
prodinf1 5
produit 33635
shift_cache 41103405
sieve_block 645
sieve_init 3483263
somme 690
sumalt 10
sumalt0 15
sumalt2 5
sumdivexpr 35
sumdivmultexpr 30
suminf 10
suminf0 10
sumpos 25
sumpos0 25
sumpos2 0
u_forprime_arith_init 5478405
u_forprime_init 5456725
u_forprime_next 54647120
u_forprime_restrict 30
u_forprime_set_prime_table 4815902
untilpari 158620
vecexpr0 885
vecexpr1 110
vecteur 1659504
vecteursmall 5
vvecteur 345
whilepari 12260
zbrent 25
zbrent0 10

Generated by: LCOV version 1.9