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-bordeaux.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 - basemath - bibli2.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 20079-8a65571) Lines: 1038 1072 96.8 %
Date: 2017-01-18 05:50:33 Functions: 91 95 95.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
QXQ_reverse 560
RgV_polint 210
RgXQ_reverse 28
ZV_indexsort 413
ZV_search 894257
ZV_sort 1141959
ZV_sort_uniq 2520
ZV_union_shallow 293989
Z_to_perm 6993
binomial 99981
binomialuu 74396
check_positive_entries 126
closurecmp 7889
cmp_Flx 168028
cmp_RgX 23949
cmp_RgX_Rg 252
cmp_nodata 421538507
cmp_prime_ideal 27530
cmp_prime_over_p 625967
cmp_small 53293435
convol 7
dirdiv 637
dirmul 189
dirval 1652
err_reverse 7
gen_cmp_RgX 972390
gen_indexsort 1358691
gen_indexsort_uniq 126
gen_search 18322402
gen_setminus 7
gen_sort 2436837
gen_sort_inplace 24425167
gen_sort_uniq 8400
gen_sortspec 119906117
gen_sortspec_uniq 1115604
gprec 182
gprec_w 2121941
gprec_wtrunc 44409
gtoset 4039
indexlexsort 0
indexsort 5276
indexvecsort 0
init_sort 28229221
laplace 21
lexsort 0
mathilbert 133
matqpascal 1127
merge_factor 910381
merge_sort_uniq 32739
modreverse 28
numtoperm 6993
perm_to_Z 840
perm_to_Z_inplace 1701
permtonum 1708
polchebyshev 4284
polchebyshev1 2156
polchebyshev1_eval 14
polchebyshev1_eval_aux 70
polchebyshev2 2135
polchebyshev2_eval 35
polchebyshev2_eval_aux 91
polchebyshev_eval 4333
polcyclo 40381
polcyclo_eval 14791
polcyclo_prime 35571
polhermite 1428
polhermite_eval 1442
polint 663
polint_i 544
pollaplace 14
pollegendre 2184
pollegendre_eval 2163
polrecip 62104
serlaplace 7
setbinop 21
setintersect 7
setisset 14
setminus 7
setsearch 35
setunion 35
sort 590510
sort_extract 1719220
sort_factor 2813160
sort_factor_pol 439719
sort_function 4409013
stirling 301
stirling1 154
stirling2 1694
tablesearch 16258346
vecbinome 15031
veccmp 1120
vecsearch 4383652
vecsort 0
vecsort0 25361
zv_search 15361604

Generated by: LCOV version 1.11