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 30074-db9b3c0519) Lines: 1212 1277 94.9 %
Date: 2025-03-13 08:38:27 Functions: 84 85 98.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Li1 36
RIpolylog 102
RgV_is_arithprog 36
_abs 771924
_jbessel 269824
_jbesselh 102
_kbessel 9308
bessel_asymp 350540
bessel_get_lim 278886
besseljzero 438
besselrefine 864
besselyzero 438
besselzero 876
bessiasymp 444
bessjasymp 69916
besskasymp 396
bessyasymp 400
constzeta 23525
cxeint1 306
cxerfc_r1 12
cxpolylog 18
czeta 11592
dblmodulus 10050248
dilog 18
eint1 2814
eint1_asymp 90
eint1m 120
eint1p 5580
eint1r_asymp 24
expmx_xs 9294
fi 600
findextraincgam 5502
gamma_use_asymp 14358
gerfc 60
get_k 18
get_xinf 3930
gpolylog 114
gpolylog_i 150
gzeta 15936
hankel_ABr 71156
hbessel1 192
hbessel2 192
ibessel 768
incgam 948
incgam0 9900
incgam_asymp 2328
incgam_asymp_partial 468
incgamc 1908
incgamc_i 5508
incgamspec 2058
jbessel 329976
jbesselh 270
jbesselintern 340454
kbessel 2670
kbessel1 12
kbessel2 0
kbesselintern 10656
logabs 36
mp_sum_j 198
mpeint1 2508
mpveceint1 204
mygamma 7176
optim_zeta 11574
polylog 174
polylog0 126
polylogD 18
polylogP 12
rX_s_eval 312139
regI 444
regJ 70316
sererfc 6
sqz 71156
sum_jall 198
szeta 4296
veceint1 42
veczeta 192
veczetas 553
vibessel 36
vjbessel 108
vjbesselh 36
vkbessel 36
vnbessel 108
ybessel 7986
zetaBorwein 512
zeta_funeq 11586

Generated by: LCOV version 1.16