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 - trans3.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.1 lcov report (development 30702-bddb8d6928) Lines: 1209 1279 94.5 %
Date: 2026-02-23 02:23:56 Functions: 84 85 98.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
kbessel2 0
sererfc 5
polylogP 10
cxerfc_r1 11
kbessel1 12
cxpolylog 15
dilog 15
get_k 15
polylogD 15
eint1r_asymp 24
Li1 30
RgV_is_arithprog 30
logabs 30
vibessel 36
vjbesselh 36
vkbessel 36
veceint1 41
gerfc 51
RIpolylog 85
eint1_asymp 90
gpolylog 96
_jbesselh 101
polylog0 106
vjbessel 108
vnbessel 108
eint1m 120
gpolylog_i 126
polylog 145
mp_sum_j 167
sum_jall 167
veczeta 168
mpveceint1 173
hbessel1 192
hbessel2 192
jbesselh 269
cxeint1 306
besskasymp 396
bessyasymp 400
zetaBorwein 427
besseljzero 438
besselyzero 438
bessiasymp 444
regI 444
incgam_asymp_partial 468
veczetas 522
fi 600
ibessel 768
besselrefine 864
besselzero 876
incgam 948
incgamc 1591
incgamspec 2058
incgam_asymp 2328
mpeint1 2339
eint1 2645
kbessel 2669
get_xinf 3413
szeta 3416
eint1p 4915
findextraincgam 5178
incgamc_i 5184
mygamma 6907
ybessel 7986
expmx_xs 8970
_kbessel 9308
incgam0 9905
kbesselintern 10655
gamma_use_asymp 13686
optim_zeta 13743
zeta_funeq 13753
czeta 13758
gzeta 17395
constzeta 22564
bessjasymp 69916
regJ 70316
hankel_ABr 71156
sqz 71156
rX_s_eval 259493
_jbessel 269302
bessel_get_lim 278364
jbessel 329456
jbesselintern 339932
bessel_asymp 350016
_abs 770876
dblmodulus 10154222

Generated by: LCOV version 1.16