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 to exceed 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.16.2 lcov report (development 29115-f22e516b23) Lines: 1252 1311 95.5 %
Date: 2024-02-28 08:03:13 Functions: 116 121 95.9 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
indexlexsort 0
polhermite_eval 0
pollaguerre_eval 0
pollegendre_eval 0
pollegendre_reduced 0
err_reverse 7
key_search 7
setintersect 7
setunion 7
setunion_i 7
convol 14
polchebyshev1_eval 14
pollaplace 14
serlaplace 14
setdelta 14
setisset 14
err_hermite 21
err_lag 21
setbinop 21
modreverse 28
laplace 35
polchebyshev2_eval 35
indexvecsort 42
ZV_sort 63
polchebyshev1_eval_aux 70
cmp_small 77
eulerianpol 77
polchebyshev2_eval_aux 91
gprec 98
check_positive_entries 133
mathilbert 133
stirling1 154
polrecip 161
RgXQ_reverse 175
ZC_union_shallow 182
RgV_polint 224
RgV_polint_fast 224
gen_setminus 245
setminus 245
stirling 301
polint 329
polint_i 329
dirmul 336
vecsort0 735
vec_equiv 1120
ZV_sort_shallow 1288
polhermite 1442
polhermite_eval0 1477
ZV_indexsort 1523
stirling2 1694
binomial0 1851
pollaguerre 2128
polchebyshev2 2135
polchebyshev1 2156
pollaguerre_eval0 2163
pollegendre 2163
pollegendre_eval0 2177
vecsort 2954
binomial_lval 3206
cmp_RgX_Rg 3612
polchebyshev 4284
polchebyshev_eval 4333
QXQ_reverse 6006
closurecmp 7909
check_dy 16188
polintspec 16223
vec_reduce 16838
inC 17357
ZV_sort_uniq_shallow 22840
ZM_merge_factor 29754
ZV_union_shallow 34510
ZV_union_shallow_t 34692
matqpascal 35880
vandermondeinverse 52718
gen_indexsort_uniq 60235
ZV_sort_uniq 60480
binomialuu 80843
vandermondeinverseinit 83593
setsearch 83622
polcyclo_eval 100138
binomial 101853
cmp_RgX 110714
vecsearch 126105
sort_function 126840
lexsort 127979
vecbinomial 147567
indexsort 201941
gtoset 227073
veccmp 295015
cmp_Flx 322046
gen_sort_uniq 347130
gen_sort_shallow 397516
dirdiv 434308
merge_sort_uniq 451331
polcyclo_prime 505436
polcyclo 627907
cmp_prime_ideal 665822
merge_factor 690043
gen_indexsort 814975
dirval 869288
sort 912893
triv_sort 1066738
ZV_search 1073662
tablesearch 1125511
ZV_sort_inplace 1201415
sort_factor_pol 1979080
gen_sortspec_uniq 2245622
sort_extract 3105917
cmp_prime_over_p 3357006
gprec_wtrunc 3663861
gen_sort 3825562
gen_cmp_RgX 5510431
gprec_wensure 6289671
sort_factor 9978586
gprec_w 11268308
zv_search 11392846
gen_search 23574705
gen_sort_inplace 40046924
init_sort 45492298
gen_sortspec 190672773
cmp_nodata 644781320

Generated by: LCOV version 1.14