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 30702-bddb8d6928) Lines: 1373 1479 92.8 %
Date: 2026-02-23 02:23:56 Functions: 112 116 96.6 %
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
thetanull11 5
thetanullk 5
ser_E 6
ser_eta 6
ser_j2 6
weberf 11
weberf1 11
weberf2 11
elljacobi_pol 12
ser_j 12
zell_closest_0 12
check_unit_disc 16
ellQp_P2t_err 18
ser_addmulXn 18
sumdedekind 20
RgXn_eta 22
zellrealpos 24
thetanull 25
trueeta 25
apply_eta_correction 33
weber0 33
elljacobi_cx 34
ellwpseries 36
jell 36
ellQp_t2P 48
elljacobi 58
autojtauprime 60
doellR_eta 60
ellzeta_cx 60
theta11prime 60
eta 64
cxanalyze 66
elleta 72
equali01 80
ellR_eta 84
eta0 89
theta 111
ellQp_P2t 114
expIxy 126
thetaflag 131
ellzeta 138
ellwp0 156
get_r0 156
elleis_from_wp 198
cxredsl2 241
get_c4c6 252
cxredsl2_i 276
Ek_from_wp 336
gadd3 348
cxE4E6 366
isqreal 366
elleisnum0 384
thetanull_i 386
coeffEu 408
ellwpseries_aux 474
double_eta_quotient 1495
expIPiQ 1553
gmul4 1566
sqrt32 1591
ellwp_cx 1620
pointell 1620
ellwpnum_all 1638
gmul3 2134
E2_correction 2876
PiI2div_sqr 3428
elleisnum 3476
e12 3478
elleisnum_testk 3854
u_sumdedekind_coprime 4498
sumdedekind_coprime 4503
inteta 5432
eta_form 5980
form_to_quad 5980
to_form 5980
eta_reduced 6061
eta_correction 6071
real2nQ 6529
expIPifrac 12197
zellcx 24630
ellperiods 24648
zell_i 24654
zell 24774
clearimall 26430
ellsigma_cx 30958
ellsigma 31048
reduce_z 32662
pi23 32668
redmod2Z 32783
autojtau 33109
thetaall 33109
thetaprec 33175
PiI2div 33912
vecthetanullk_loop 34167
qq 34231
cxEk 34464
set_gamma 36402
ellomega_cx 36711
doellR_omega 44971
ellomega_agm 44971
elleta_W 55648
ispair 59364
get_periods 60816
compute_periods 60882
red_modSL2 60882
check_periods 60888
_period 61976
check_complex 65814
upper_to_cx 67424
ellR_omega 79542
clearim 105720
expIPiR 160038
expIPiC 278655

Generated by: LCOV version 1.16