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.8.0 lcov report (development 19611-73a567d) Lines: 1032 1073 96.2 %
Date: 2016-09-27 05:54:40 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 894243
ZV_sort 1141784
ZV_sort_uniq 2513
ZV_union_shallow 295907
Z_to_perm 9492
binomial 99967
binomialuu 74102
check_positive_entries 126
closurecmp 7889
cmp_Flx 178763
cmp_RgX 23844
cmp_RgX_Rg 224
cmp_nodata 379600690
cmp_prime_ideal 38623
cmp_prime_over_p 630155
cmp_small 51173680
convol 7
dirdiv 518
dirmul 133
dirval 1302
err_reverse 7
gen_cmp_RgX 939767
gen_indexsort 1331927
gen_indexsort_uniq 126
gen_search 14044695
gen_setminus 7
gen_sort 2403067
gen_sort_inplace 23256596
gen_sort_uniq 5243
gen_sortspec 113918076
gen_sortspec_uniq 973903
gprec 182
gprec_w 2118427
gprec_wtrunc 22302
gtoset 896
indexlexsort 0
indexsort 5215
indexvecsort 0
init_sort 26996959
laplace 21
lexsort 0
mathilbert 133
matqpascal 1057
merge_factor 912160
merge_sort_uniq 32641
modreverse 28
numtoperm 9492
perm_to_Z 840
perm_to_Z_inplace 6020
permtonum 6027
polchebyshev 4284
polchebyshev1 2156
polchebyshev1_eval 14
polchebyshev1_eval_aux 70
polchebyshev2 2135
polchebyshev2_eval 35
polchebyshev2_eval_aux 91
polchebyshev_eval 4333
polcyclo 40220
polcyclo_eval 14574
polcyclo_prime 35473
polhermite 1428
polhermite_eval 1442
polint 599
polint_i 466
pollaplace 14
pollegendre 2184
pollegendre_eval 2163
polrecip 62104
serlaplace 7
setbinop 21
setintersect 7
setisset 14
setminus 7
setsearch 105903
setunion 21
sort 589819
sort_extract 1686620
sort_factor 2826467
sort_factor_pol 427831
sort_function 742
stirling 301
stirling1 154
stirling2 1694
tablesearch 16228516
vecbinome 14219
veccmp 1120
vecsearch 70
vecsort 0
vecsort0 672
zv_search 15331935

Generated by: LCOV version 1.11