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 30462-6c568f4018) Lines: 1394 1500 92.9 %
Date: 2025-08-10 09:24:05 Functions: 116 120 96.7 %
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
ser_E 7
ser_eta 7
ser_j2 7
thetanull11 7
thetanullk 7
elljacobi_pol 14
ser_j 14
weberf 14
weberf1 14
weberf2 14
zell_closest_0 14
check_unit_disc 21
ellQp_P2t_err 21
ser_addmulXn 21
RgXn_eta 28
cxg2g3 28
ellweierstrass 28
sumdedekind 28
zellrealpos 28
thetanull 35
trueeta 35
apply_eta_correction 42
elljacobi_cx 42
ellwpseries 42
jell 42
weber0 42
ellQp_t2P 56
doellR_eta 70
elljacobi 70
eta 77
autojtauprime 84
cxanalyze 84
ellR_eta 84
elleta 84
ellzeta_cx 84
theta11prime 84
elleta_w 105
equali01 112
eta0 112
ellQp_P2t 133
ellzeta 175
ellwp0 182
get_r0 182
theta 182
thetaflag 210
elleis_from_wp 231
cxredsl2 294
get_c4c6 294
cxredsl2_i 336
Ek_from_wp 392
cxE4E6 427
isqreal 427
gadd3 434
elleisnum0 448
cxE4E6_init 455
coeffEu 476
thetanull_i 483
ellwpseries_aux 553
gmul4 1827
ellwp_cx 1890
pointell 1890
ellwpnum_all 1911
sqrt32 2079
double_eta_quotient 2093
expIPiQ 2170
gmul3 2520
E2_correction 4025
e12 4481
PiI2div_sqr 4739
elleisnum 4781
elleisnum_testk 5222
u_sumdedekind_coprime 6293
sumdedekind_coprime 6300
real2nQ 7603
inteta 7639
eta_form 8372
form_to_quad 8372
to_form 8372
eta_reduced 8477
eta_correction 8491
expIPifrac 15958
zellcx 28735
ellperiods 28756
zell_i 28763
zell 28903
clearimall 31122
ellsigma_cx 37569
ellsigma 37674
reduce_z 39571
pi23 39711
redmod2Z 39767
autojtau 40166
thetaall 40166
thetaprec 40257
PiI2div 41727
vecthetanullk_loop 42095
qq 42172
cxEk 42441
ellomega_cx 42829
set_gamma 44716
doellR_omega 52465
ellomega_agm 52465
elleta_W 66388
ispair 71477
get_periods 73185
compute_periods 73262
red_modSL2 73262
check_periods 73269
_period 75222
check_complex 79030
upper_to_cx 82457
ellR_omega 92799
clearim 124348
expIPiR 184612
expIPiC 330355
expIxy 596273

Generated by: LCOV version 1.16