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

Generated by: LCOV version 1.16