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.1 lcov report (development 28676-df828f1c94) Lines: 1251 1311 95.4 %
Date: 2023-08-26 07:54:43 Functions: 114 120 95.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
QXQ_reverse 5931
RgV_polint 224
RgV_polint_fast 224
RgXQ_reverse 175
ZC_union_shallow 182
ZV_indexsort 1661
ZV_search 1073691
ZV_sort 63
ZV_sort_inplace 1153350
ZV_sort_shallow 1372
ZV_sort_uniq 40313
ZV_sort_uniq_shallow 21511
ZV_union_shallow 34431
ZV_union_shallow_t 34613
binomial 100989
binomial0 924
binomial_lval 3206
binomialuu 79995
check_dy 16188
check_positive_entries 133
closurecmp 7889
cmp_Flx 322163
cmp_RgX 110558
cmp_RgX_Rg 3612
cmp_nodata 647804771
cmp_prime_ideal 347292
cmp_prime_over_p 3102046
cmp_small 77
convol 14
dirdiv 434308
dirmul 336
dirval 869288
err_hermite 21
err_lag 21
err_reverse 7
eulerianpol 77
gen_cmp_RgX 5360493
gen_indexsort 813048
gen_indexsort_uniq 58912
gen_search 23574705
gen_setminus 1001
gen_sort 3558600
gen_sort_inplace 39713917
gen_sort_shallow 396732
gen_sort_uniq 276387
gen_sortspec 190247192
gen_sortspec_uniq 2011450
gprec 98
gprec_w 10192689
gprec_wensure 5940625
gprec_wtrunc 3531867
gtoset 227045
inC 17357
indexlexsort 0
indexsort 202168
indexvecsort 42
init_sort 44817572
key_search 7
laplace 35
lexsort 0
mathilbert 133
matqpascal 34285
merge_factor 691643
merge_sort_uniq 453897
modreverse 28
polchebyshev 4284
polchebyshev1 2156
polchebyshev1_eval 14
polchebyshev1_eval_aux 70
polchebyshev2 2135
polchebyshev2_eval 35
polchebyshev2_eval_aux 91
polchebyshev_eval 4333
polcyclo 628285
polcyclo_eval 100172
polcyclo_prime 505877
polhermite 1442
polhermite_eval 0
polhermite_eval0 1477
polint 329
polint_i 329
polintspec 16223
pollaguerre 2128
pollaguerre_eval 0
pollaguerre_eval0 2163
pollaplace 14
pollegendre 2163
pollegendre_eval 0
pollegendre_eval0 2177
pollegendre_reduced 0
polrecip 161
serlaplace 14
setbinop 21
setdelta 14
setintersect 7
setisset 14
setminus 1001
setsearch 83622
setunion 7
setunion_i 7
sort 911778
sort_extract 2776521
sort_factor 9739878
sort_factor_pol 1790391
sort_function 126833
stirling 301
stirling1 154
stirling2 1694
tablesearch 1124435
triv_sort 1058473
vandermondeinverse 52911
vandermondeinverseinit 83790
vec_equiv 1085
vec_reduce 15246
vecbinomial 147308
veccmp 295015
vecsearch 126105
vecsort 2954
vecsort0 728
zv_search 9303031

Generated by: LCOV version 1.14