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.17.0 lcov report (development 29533-68f6ba3cba) Lines: 1255 1315 95.4 %
Date: 2024-09-16 09:02:59 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 1127
ZV_sort_shallow 1288
polhermite 1442
polhermite_eval0 1477
stirling2 1694
binomial0 1846
pollaguerre 2128
polchebyshev2 2135
polchebyshev1 2156
pollaguerre_eval0 2163
pollegendre 2163
pollegendre_eval0 2177
ZV_indexsort 2912
vecsort 2954
binomial_lval 3206
cmp_RgX_Rg 3609
polchebyshev 4284
polchebyshev_eval 4333
QXQ_reverse 6020
closurecmp 7909
check_dy 16188
polintspec 16223
inC 17357
vec_reduce 21252
ZM_merge_factor 30941
ZV_union_shallow 34517
ZV_union_shallow_t 34699
matqpascal 35931
ZV_sort_uniq_shallow 36938
vandermondeinverse 52787
ZV_sort_uniq 60529
gen_indexsort_uniq 76010
binomialuu 81262
setsearch 83622
vandermondeinverseinit 83664
polcyclo_eval 100183
binomial 102692
cmp_RgX 110743
vecsearch 126126
sort_function 126861
lexsort 127981
vecbinomial 152785
indexsort 204620
gtoset 227073
veccmp 295015
cmp_Flx 322015
gen_sort_uniq 347179
gen_sort_shallow 402317
dirdiv 434322
merge_sort_uniq 451717
polcyclo_prime 506741
polcyclo 632369
cmp_prime_ideal 665914
merge_factor 691230
gen_indexsort 826009
dirval 869316
sort 960020
triv_sort 1071705
ZV_search 1073714
tablesearch 1125630
ZV_sort_inplace 1221273
sort_factor_pol 1978004
gen_sortspec_uniq 2268317
sort_extract 3150958
cmp_prime_over_p 3358856
gprec_wtrunc 3678049
gen_sort 3875464
gen_cmp_RgX 5507674
gprec_wensure 6290450
sort_factor 9865991
gprec_w 11396849
zv_search 12890445
gen_search 23574726
gen_sort_inplace 40098149
init_sort 45625104
gen_sortspec 190681110
cmp_nodata 644994599

Generated by: LCOV version 1.16