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 21353-12523aa) Lines: 1051 1079 97.4 %
Date: 2017-11-24 06:20:58 Functions: 95 97 97.9 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
indexlexsort 0
lexsort 0
convol 7
err_reverse 7
gen_setminus 7
setintersect 7
setminus 7
polchebyshev1_eval 14
pollaplace 14
serlaplace 14
setisset 14
setbinop 21
laplace 28
modreverse 28
indexvecsort 35
polchebyshev2_eval 35
setsearch 35
setunion 35
RgXQ_reverse 63
polchebyshev1_eval_aux 70
polchebyshev2_eval_aux 91
polrecip 112
check_positive_entries 126
gen_indexsort_uniq 126
mathilbert 133
gtoset 147
stirling1 154
gprec 182
dirmul 189
RgV_polint 210
binomial0 210
stirling 301
cmp_RgX_Rg 378
ZV_indexsort 413
dirdiv 637
polint 658
vecsort0 658
QXQ_reverse 679
perm_to_Z 840
matqpascal 1148
polhermite 1428
polhermite_eval 1442
dirval 1652
stirling2 1694
perm_to_Z_inplace 1701
permtonum 1708
polchebyshev2 2135
polchebyshev1 2156
pollegendre_eval 2163
pollegendre 2184
vecsort 2947
ZV_sort_uniq 3010
polchebyshev 4284
polchebyshev_eval 4333
gen_sort_uniq 5033
Z_to_perm 5915
numtoperm 5915
closurecmp 7889
indexsort 11504
polint_i 16503
polcyclo_eval 17234
vecbinomial 18797
cmp_RgX 25312
merge_sort_uniq 33117
cmp_prime_ideal 48987
binomialuu 76125
binomial 99995
veccmp 149568
cmp_Flx 183920
polcyclo_prime 329409
ZV_union_shallow 344018
ZV_sort_inplace 363020
gprec_wtrunc 363822
polcyclo 442527
sort_factor_pol 474899
vecsearch 536536
sort_function 537194
sort 601425
cmp_prime_over_p 679100
ZV_sort 781970
ZV_search 899108
gen_sortspec_uniq 957579
merge_factor 962615
gen_cmp_RgX 1329612
gen_indexsort 1375554
sort_extract 1397014
gen_sort 2100733
gprec_w 2472100
sort_factor 2870960
gen_search 14883232
zv_search 17314194
tablesearch 18217845
gen_sort_inplace 22486376
init_sort 25967822
cmp_small 56039734
gen_sortspec 110344219
cmp_nodata 365871577

Generated by: LCOV version 1.11