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 17587-9bb49d9) Lines: 913 977 93.4 %
Date: 2015-03-03 Functions: 70 71 98.6 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 598 755 79.2 %

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
copyupto 3729266
delt 126
deriv_eval 14
derivfun 28
derivfun0 7
derivnum 21
derivnum0 21
direuler 119
direuler0 119
err_direuler 7
forcomposite 42
forcomposite_init 42
forcomposite_next 147
fordiv 7
forpari 2535418
forparii 2535412
forprime 175
forprime_init 521
forprime_next 8399919
forstep 1456
forvec 6951
forvec_init 6951
forvec_next 1201053
iferrpari 1235663
matrice 476
negcmp 28
optimize_chunk 4817148
polzag 28
polzag1 35
prodeuler 7
prodeuler0 7
prodinf 7
prodinf0 14
prodinf1 7
produit 47089
shift_cache 57544767
sieve_block 903
sieve_init 4817148
somme 1106
sumalt 14
sumalt0 21
sumalt2 7
sumdivexpr 49
sumdivmultexpr 42
suminf 14
suminf0 14
sumpos 35
sumpos0 35
sumpos2 0
u_forprime_arith_init 7644786
u_forprime_init 7613988
u_forprime_next 75621965
u_forprime_restrict 42
u_forprime_set_prime_table 6796228
untilpari 222070
vecexpr0 1414
vecexpr1 161
vecteur 2333287
vecteursmall 42
vvecteur 483
whilepari 17164
zbrent 56
zbrent0 14

Generated by: LCOV version 1.9