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.16.2 lcov report (development 29115-f22e516b23) Lines: 1739 1866 93.2 %
Date: 2024-03-29 08:06:26 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
weberf2 7
RgV_is_arithprog 14
cxerfc_r1 14
kbessel1 14
polylogP 14
ser_j 14
theta 14
weberf 14
weberf1 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
apply_eta_correction 35
weber0 35
Li1 42
jell 42
logabs 42
vibessel 42
vjbesselh 42
vkbessel 42
veceint1 49
cxanalyze 70
gerfc 70
eta 77
eta0 77
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 224
sum_jall 224
mpveceint1 231
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 2233
incgamspec 2401
incgam_asymp 2716
mpeint1 2926
kbessel 3115
eint1 3283
e12 3657
get_xinf 4578
szeta 4795
u_sumdedekind_coprime 6251
sumdedekind_coprime 6258
eint1p 6398
findextraincgam 6419
incgamc_i 6426
eta_form 8372
form_to_quad 8372
mygamma 8372
to_form 8372
optim_zeta 8610
zeta_funeq 8624
czeta 8631
real2nQ 9276
ybessel 9317
expmx_xs 10843
_kbessel 10860
incgam0 11550
kbesselintern 12432
gzeta 13440
expIPifrac 15052
gamma_use_asymp 16639
constzeta 27423
trueeta 37569
expIPiQ 39697
inteta 45155
eta_reduced 45997
eta_correction 46011
vecthetanullk_loop 70872
qq 70949
cxEk 71141
bessjasymp 81433
regJ 81899
hankel_ABr 82879
sqz 82879
upper_to_cx 108511
expIPiR 183756
_jbessel 314931
bessel_get_lim 325504
rX_s_eval 361032
expIPiC 376996
jbessel 384972
jbesselintern 397197
bessel_asymp 408964
expIxy 441701
_abs 900443
dblmodulus 11605760

Generated by: LCOV version 1.14