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.12.0 lcov report (development 23171-a5c0ed393) Lines: 1789 1893 94.5 %
Date: 2018-10-20 05:38:07 Functions: 111 113 98.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
vecthetanullk 0
vecthetanullk_tau 0
kbessel2 7
ser_E 7
ser_eta 7
ser_j2 7
thetanullk 7
weberf2 7
cxerfc_r1 14
polylogP 14
polylogvec 14
ser_j 14
theta 14
weberf 14
weberf1 14
zetap 14
zetap_i 14
Harmonic 21
check_unit_disc 21
cxpolylog 21
dilog 21
get_k 21
polylogD 21
ser_addmulXn 21
RgXn_eta 28
kbessel1 28
sumdedekind 28
apply_eta_correction 35
gerfc 35
jbesselhvec 35
weber0 35
jell 42
logabs 42
veceint1 49
cxanalyze 70
eta 77
eta0 77
qq 77
reverse 91
serexp0 91
polylog0 126
serlambertW 133
_jbesselh 140
gpolylog 140
jbesselvec 140
kbesselvec 140
init_cache 161
hurwitzp_i 168
hurwitzp 175
mplambertW0 196
mplambertW 203
polylog 203
zetahurwitz 217
hbessel1 252
hbessel2 252
mp_sum_j 252
sum_jall 252
mpveceint1 259
jbesselh 336
cxeint1 357
ibessel 385
zetaBorwein 418
coeffEu 476
glambertW 539
incgam_asymp_partial 546
nbessel 658
jbessel 763
incgam 1106
sqrt32 1323
incgamc 1414
e12 1939
mpeint1 1974
double_eta_quotient 2093
incgamspec 2401
eint1 2471
kbessel 2611
szeta 2625
_kbessel1 2800
incgam_asymp 2821
kbesselintern 3437
get_xinf 3829
_jbessel 4207
jbesselintern 4571
binsplit 5138
findextraincgam 5586
incgamc_i 5593
incgam_0 6041
u_sumdedekind_coprime 6251
sumdedekind_coprime 6258
bessel_get_lim 6699
optim_zeta 6741
czeta 6755
mygamma 7672
eta_form 8372
form_to_quad 8372
to_form 8372
gzeta 8820
trueeta 8869
upper_to_cx 8939
veczetas 9181
veczeta 9272
expmx_xs 10115
eiPi_frac 10220
exp_IPiQ 10997
incgam0 11529
vecthetanullk_loop 13461
cxEk 13720
inteta 16443
eta_reduced 17297
eta_correction 17311
exp_IPiC 17311
rX_s_eval 487288
dblmodulus 9977277

Generated by: LCOV version 1.13