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 30076-15f6073f4c) Lines: 1212 1277 94.9 %
Date: 2025-03-14 09:20:25 Functions: 84 85 98.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Li1 42
RIpolylog 119
RgV_is_arithprog 42
_abs 900443
_jbessel 314931
_jbesselh 119
_kbessel 10860
bessel_asymp 408964
bessel_get_lim 325504
besseljzero 511
besselrefine 1008
besselyzero 511
besselzero 1022
bessiasymp 518
bessjasymp 81433
besskasymp 462
bessyasymp 466
constzeta 27444
cxeint1 357
cxerfc_r1 14
cxpolylog 21
czeta 13524
dblmodulus 11720875
dilog 21
eint1 3283
eint1_asymp 105
eint1m 140
eint1p 6510
eint1r_asymp 28
expmx_xs 10843
fi 700
findextraincgam 6419
gamma_use_asymp 16751
gerfc 70
get_k 21
get_xinf 4585
gpolylog 133
gpolylog_i 175
gzeta 18592
hankel_ABr 82879
hbessel1 224
hbessel2 224
ibessel 896
incgam 1106
incgam0 11550
incgam_asymp 2716
incgam_asymp_partial 546
incgamc 2226
incgamc_i 6426
incgamspec 2401
jbessel 384972
jbesselh 315
jbesselintern 397197
kbessel 3115
kbessel1 14
kbessel2 0
kbesselintern 12432
logabs 42
mp_sum_j 231
mpeint1 2926
mpveceint1 238
mygamma 8372
optim_zeta 13503
polylog 203
polylog0 147
polylogD 21
polylogP 14
rX_s_eval 364903
regI 518
regJ 81899
sererfc 7
sqz 82879
sum_jall 231
szeta 5012
veceint1 49
veczeta 224
veczetas 705
vibessel 42
vjbessel 126
vjbesselh 42
vkbessel 42
vnbessel 126
ybessel 9317
zetaBorwein 598
zeta_funeq 13517

Generated by: LCOV version 1.16