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

Generated by: LCOV version 1.16