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-bordeaux1.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.8.0 lcov report (development 16375-9f41ae0) Lines: 1669 1827 91.4 %
Date: 2014-04-19 Functions: 106 111 95.5 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 821 1105 74.3 %

Function Name Sort by function name Hit count Sort by hit count
Harmonic 28
R_abs_shallow 0
_jbessel 1764
_jbesselh 154
_kbessel1 490
apply_eta_correction 42
bernfrac_using_zeta 2709
bernreal 2219409
bernreal_use_zeta 609
bernreal_using_zeta 3003
bessel_get_lim 1974
check_unit_disc 35
cxanalyze 84
cxeint1 217
cxerfc_r1 14
cxpolylog 28
czeta 9394
dblmodulus 3535
dilog 21
double_eta_quotient 1967
e12 1909
eiPi_frac 9763
eint1 3045
eta 49
eta0 42
eta_correction 16492
eta_form 7868
eta_reduced 16464
exp_IPiC 16485
exp_IPiQ 10549
form_to_quad 7868
gerfc 35
get_xinf 2527
gexp1 42
glambertW 294
gpolylog 140
gzeta 9478
hbessel1 224
hbessel2 224
hurwitz_p 21
hyperu 21
ibessel 224
incgam 1673
incgam0 5362
incgam_0 436254
incgam_asymp 1085
incgam_cf 1092
incgamc 3878
incgamspec 280
init_cache 14
inteta 15684
inteta_pol 14
inv_szeta_euler 3017
jbessel 595
jbesselh 315
jbesselhvec 35
jbesselintern 1960
jbesselvec 140
jell 42
kbessel 287
kbessel1 28
kbessel2 7
kbesselintern 1141
kbesselvec 140
logabs 70
mp_sum_j 5964
mpeint1 187264
mplambertW 84
mplambertW0 77
mpveceint1 40460
n_s 160018
nbessel 686
next_bin 420
optim_zeta 9380
pol_mod_xn 0
polylog 308
polylog0 126
polylogD 35
polylogP 21
polylogvec 14
powruvec 350
qq 49
rX_s_eval 651328
reverse 84
ser_addmulXn 21
ser_j 7
serexp0 84
serlambertW 126
sqrt32 1321
sum_jall 5964
sumdedekind 28
sumdedekind_coprime 5852
szeta 1876
szeta_odd 343
theta 21
thetanullk 14
to_form 7868
trueE2 12873
trueeta 8540
twistpartialzeta 0
u_sumdedekind_coprime 3077308
upper_half 8610
veceint1 42
vecthetanullk 0
vecthetanullk_loop 12873
vecthetanullk_tau 0
weber0 28
weberf 14
weberf1 14
weberf2 14
zetap 14

Generated by: LCOV version 1.9