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.0 lcov report (development 29804-254f602fce) Lines: 1742 1867 93.3 %
Date: 2024-12-18 09:08:59 Functions: 126 129 97.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
kbessel2 0
vecthetanullk 0
vecthetanullk_tau 0
ser_E 7
ser_eta 7
ser_j2 7
sererfc 7
thetanullk 7
RgV_is_arithprog 14
cxerfc_r1 14
kbessel1 14
polylogP 14
ser_j 14
theta 14
weberf 14
weberf1 14
weberf2 14
check_unit_disc 21
cxpolylog 21
dilog 21
get_k 21
polylogD 21
ser_addmulXn 21
RgXn_eta 28
eint1r_asymp 28
sumdedekind 28
Li1 42
apply_eta_correction 42
jell 42
logabs 42
vibessel 42
vjbesselh 42
vkbessel 42
weber0 42
veceint1 49
gerfc 70
eta 77
eta0 77
cxanalyze 84
eint1_asymp 105
RIpolylog 119
_jbesselh 119
vjbessel 126
vnbessel 126
gpolylog 133
eint1m 140
polylog0 147
gpolylog_i 175
polylog 203
veczeta 217
hbessel1 224
hbessel2 224
mp_sum_j 231
sum_jall 231
mpveceint1 238
jbesselh 315
cxeint1 357
besskasymp 462
bessyasymp 466
coeffEu 476
besseljzero 511
besselyzero 511
bessiasymp 518
regI 518
incgam_asymp_partial 546
zetaBorwein 598
veczetas 698
fi 700
ibessel 896
besselrefine 1008
besselzero 1022
incgam 1106
double_eta_quotient 2093
incgamc 2226
sqrt32 2240
incgamspec 2401
incgam_asymp 2716
mpeint1 2926
kbessel 3115
eint1 3283
e12 3689
get_xinf 4578
szeta 4991
u_sumdedekind_coprime 6258
sumdedekind_coprime 6265
findextraincgam 6419
incgamc_i 6426
eint1p 6510
eta_form 8372
form_to_quad 8372
mygamma 8372
to_form 8372
optim_zeta 8624
zeta_funeq 8638
czeta 8645
real2nQ 9301
ybessel 9317
expmx_xs 10843
_kbessel 10860
incgam0 11550
kbesselintern 12432
gzeta 13650
expIPifrac 15098
gamma_use_asymp 16751
constzeta 27423
trueeta 37569
expIPiQ 39704
inteta 45169
eta_reduced 46011
eta_correction 46025
vecthetanullk_loop 70872
qq 70949
cxEk 71141
bessjasymp 81433
regJ 81899
hankel_ABr 82879
sqz 82879
upper_to_cx 108518
expIPiR 183786
_jbessel 314931
bessel_get_lim 325504
rX_s_eval 364903
expIPiC 377024
jbessel 384972
jbesselintern 397197
bessel_asymp 408964
expIxy 596273
_abs 900443
dblmodulus 11721285

Generated by: LCOV version 1.16