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 16624-25b9976) Lines: 1664 1822 91.3 %
Date: 2014-06-24 Functions: 105 110 95.5 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 820 1103 74.3 %

Function Name Sort by function name Hit count Sort by hit count
Harmonic 20
R_abs_shallow 0
_jbessel 1260
_jbesselh 110
_kbessel1 350
apply_eta_correction 30
bernfrac_using_zeta 1923
bernreal 1584787
bernreal_use_zeta 695
bernreal_using_zeta 2133
bessel_get_lim 1410
check_unit_disc 25
cxanalyze 60
cxeint1 155
cxerfc_r1 10
cxpolylog 20
czeta 6710
dblmodulus 2525
dilog 15
double_eta_quotient 1405
e12 1367
eiPi_frac 6977
eint1 2180
eta 35
eta0 30
eta_correction 11780
eta_form 5620
eta_reduced 11760
exp_IPiC 11775
exp_IPiQ 7535
form_to_quad 5620
gerfc 25
get_xinf 1805
gexp1 30
glambertW 210
gpolylog 100
gzeta 6770
hbessel1 160
hbessel2 160
hurwitz_p 15
hyperu 15
ibessel 160
incgam 1195
incgam0 3830
incgam_0 4550
incgam_asymp 775
incgam_cf 780
incgamc 2770
incgamspec 200
init_cache 10
inteta 11166
inteta_pol 10
inv_szeta_euler 2143
jbessel 425
jbesselh 225
jbesselhvec 25
jbesselintern 1400
jbesselvec 100
jell 30
kbessel 205
kbessel1 20
kbessel2 5
kbesselintern 815
kbesselvec 100
logabs 50
mp_sum_j 160
mpeint1 1965
mplambertW 60
mplambertW0 55
mpveceint1 165
n_s 114292
nbessel 490
next_bin 435
optim_zeta 6700
pol_mod_xn 0
polylog 220
polylog0 90
polylogD 25
polylogP 15
polylogvec 10
qq 35
rX_s_eval 312347
reverse 60
ser_addmulXn 15
ser_j 5
serexp0 60
serlambertW 90
sqrt32 947
sum_jall 160
sumdedekind 20
sumdedekind_coprime 4180
szeta 1730
szeta_odd 375
theta 15
thetanullk 10
to_form 5620
trueE2 9195
trueeta 6100
twistpartialzeta 0
u_sumdedekind_coprime 2198072
upper_half 6150
veceint1 35
vecthetanullk 0
vecthetanullk_loop 9195
vecthetanullk_tau 0
weber0 20
weberf 10
weberf1 10
weberf2 10
zetap 10

Generated by: LCOV version 1.9