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 20422-b487f4d) Lines: 1824 1908 95.6 %
Date: 2017-03-22 05:51:54 Functions: 115 117 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 9919
bernreal 8667077
bernreal_use_zeta 1624
bernreal_use_zeta_i 2639
bernreal_using_zeta 9926
bessel_get_lim 6566
check_unit_disc 21
coeffEu 476
cxanalyze 70
cxeint1 357
cxerfc_r1 7
cxpolylog 28
czeta 6706
dblmodulus 4516100
dilog 21
double_eta_quotient 2093
e12 2093
eiPi_frac 10374
eint1 2471
eta 63
eta0 63
eta_correction 17276
eta_form 8372
eta_reduced 17262
exp_IPiC 17276
exp_IPiQ 10962
expmx_xs 10101
findextraincgam 5579
form_to_quad 8372
gerfc 28
get_xinf 3822
glambertW 532
gpolylog 140
gzeta 8561
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 16382
inteta_pol 14
inv_szeta_euler 10104
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
n_s 102289
nbessel 658
optim_zeta 6692
polylog 203
polylog0 126
polylogD 21
polylogP 14
polylogvec 14
qq 63
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 3052
theta 14
thetanullk 7
to_form 8372
trueE2 13342
trueeta 8834
u_sumdedekind_coprime 6251
upper_to_cx 8904
veceint1 49
vecthetanullk 0
vecthetanullk_loop 13342
vecthetanullk_tau 0
veczeta 7157
veczetas 7115
weber0 35
weberf 14
weberf1 14
weberf2 7
zetaBorwein 340
zetahurwitz 42
zetap 14

Generated by: LCOV version 1.11