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 - elltrans.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.1 lcov report (development 30076-15f6073f4c) Lines: 1274 1374 92.7 %
Date: 2025-03-14 09:20:25 Functions: 107 111 96.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
ellwp 0
vecthetanullk 0
vecthetanullk_tau 0
zellrealneg 0
gmul4 7
ser_E 7
ser_eta 7
ser_j2 7
thetanull11 7
thetanullk 7
wp 7
wpprime 7
wsigma 7
wzeta 7
_thetaz 14
elljacobi 14
ellwpseries 14
ser_j 14
weberf 14
weberf1 14
weberf2 14
zell_closest_0 14
check_unit_disc 21
ellQp_P2t_err 21
ellweierstrass 21
gadd3 21
mfE2eval 21
redmodZ 21
ser_addmulXn 21
weta1eta2 21
wg2g3 21
RgXn_eta 28
sumdedekind 28
zellrealpos 28
thetanull 35
apply_eta_correction 42
gmul3 42
jell 42
weber0 42
ellQp_t2P 56
thetanull_i 63
doellR_eta 70
eta 77
cxanalyze 84
ellR_eta 84
elleta 84
equali01 112
eta0 112
ellQp_P2t 133
ellzeta 161
theta 175
ellwp0 182
get_r0 182
redmod2Z 210
thetaflag 210
clearimall 273
thetaall_i 273
autojtau 280
thetaprec 287
get_c4c6 294
ellwpseries_aux 301
clearim 434
coeffEu 476
pointell 1890
ellwpnum_all 1911
double_eta_quotient 2093
sqrt32 2254
e12 3731
elleisnum 4459
u_sumdedekind_coprime 6293
sumdedekind_coprime 6300
eta_form 8372
form_to_quad 8372
to_form 8372
real2nQ 9217
expIPifrac 15028
zellcx 28735
ellperiods 28749
zell_i 28763
zell 28903
trueeta 37604
eta_period 37618
ellsigma 37674
cxredsl2 37884
cxredsl2_i 37926
get_toadd 39431
reduce_z 39557
expIPiQ 39739
ellomega_cx 42759
inteta 45204
eta_reduced 46046
eta_correction 46060
doellR_omega 52360
ellomega_agm 52360
_elleta 66353
vecthetanullk_loop 70893
qq 70970
_elleisnum 70994
cxEk 71162
get_periods 72856
compute_periods 72933
red_modSL2 72933
check_periods 72940
check_complex 79016
ellR_omega 92652
upper_to_cx 108854
set_gamma 110859
PiI2div 139314
expIPiR 184514
expIPiC 377724
expIxy 596273

Generated by: LCOV version 1.16