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 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.10.0 lcov report (development 20916-a74d914) Lines: 1800 1884 95.5 %
Date: 2017-08-18 06:23:59 Functions: 114 116 98.3 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Harmonic 28
_jbessel 4074
_jbesselh 140
_kbessel1 2800
apply_eta_correction 35
bernfrac_using_zeta 10026
bernreal 8672302
bernreal_use_zeta 1631
bernreal_use_zeta_i 2639
bernreal_using_zeta 10033
bessel_get_lim 6566
check_unit_disc 21
coeffEu 476
cxanalyze 70
cxeint1 357
cxerfc_r1 7
cxpolylog 28
czeta 6706
dblmodulus 4313506
dilog 21
double_eta_quotient 2093
e12 2093
eiPi_frac 10374
eint1 2471
eta 70
eta0 70
eta_correction 17304
eta_form 8372
eta_reduced 17290
exp_IPiC 17304
exp_IPiQ 10990
expmx_xs 10101
findextraincgam 5579
form_to_quad 8372
gerfc 28
get_xinf 3822
glambertW 532
gpolylog 140
gzeta 8575
hbessel1 252
hbessel2 252
hurwitz_p 21
hyperu 14
ibessel 252
incgam 1106
incgam0 11515
incgam_0 6041
incgam_asymp 2821
incgam_asymp_partial 546
incgamc 1414
incgamc_i 5586
incgamspec 2394
init_cache 14
inteta 16417
inteta_pol 21
inv_szeta_euler 10211
jbessel 763
jbesselh 336
jbesselhvec 35
jbesselintern 4438
jbesselvec 140
jell 42
kbessel 2611
kbessel1 28
kbessel2 7
kbesselintern 3437
kbesselvec 140
logabs 42
mp_sum_j 252
mpeint1 1974
mplambertW 203
mplambertW0 196
mpveceint1 259
mygamma 7651
nbessel 658
optim_zeta 6692
polylog 203
polylog0 126
polylogD 21
polylogP 14
polylogvec 14
qq 70
rX_s_eval 487288
reverse 84
ser_E 7
ser_addmulXn 21
ser_eta 7
ser_j 14
ser_j2 7
serexp0 84
serlambertW 126
sqrt32 1477
sum_jall 252
sumdedekind 28
sumdedekind_coprime 6258
szeta 3066
theta 14
thetanullk 7
to_form 8372
trueE2 13440
trueeta 8862
u_sumdedekind_coprime 6251
upper_to_cx 8932
veceint1 49
vecthetanullk 0
vecthetanullk_loop 13440
vecthetanullk_tau 0
veczeta 7857
veczetas 7815
weber0 35
weberf 14
weberf1 14
weberf2 7
zetaBorwein 347
zetahurwitz 42
zetap 14

Generated by: LCOV version 1.11