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 30145-32f0acf4da) Lines: 1388 1523 91.1 %
Date: 2025-04-18 09:18:41 Functions: 110 115 95.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
ellsigma_cx 0
ellwp 0
vecthetanullk 0
vecthetanullk_tau 0
zellrealneg 0
elljacobi_pol 7
ser_E 7
ser_eta 7
ser_j2 7
thetanullk 7
ellwpseries 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
ellweierstrass 28
ellweierstrass_i 28
sumdedekind 28
weta1eta2 28
wg2g3 28
zellrealpos 28
thetanull 35
trueeta 35
apply_eta_correction 42
elljacobi_cx 42
jell 42
weber0 42
elljacobi 49
ellQp_t2P 56
doellR_eta 70
eta 77
autojtauprime 84
cxanalyze 84
ellR_eta 84
elleta 84
ellzeta_cx_i 84
theta11prime 84
equali01 112
eta0 112
mfE2eval 112
ellQp_P2t 133
ellzeta 175
ellwp0 182
get_r0 182
theta 182
thetaflag 210
isqreal 252
get_c4c6 294
ellwpseries_aux 301
thetanull_i 308
cxredsl2 406
cxredsl2_i 448
coeffEu 476
thetaall_i 490
gmul4 1827
ellwp_cx 1890
pointell 1890
ellwpnum_all 1911
checkom 2002
double_eta_quotient 2093
sqrt32 2156
expIPiQ 2170
redmod2Z 2198
thetaall_ii 2422
thetaprec 2513
clearimall 4347
elleisnum 4459
u_sumdedekind_coprime 6293
sumdedekind_coprime 6300
inteta 7639
eta_form 8372
form_to_quad 8372
to_form 8372
eta_reduced 8477
eta_correction 8491
real2nQ 12014
expIPifrac 18354
zellcx 28735
ellperiods 28749
zell_i 28763
clearim 28791
zell 28903
get_toadd 37471
thetanull11 37576
eta_period 37632
ellsigma 37674
reduce_z 39571
autojtau 39991
e12 42024
ellomega_cx 42759
doellR_omega 52360
ellomega_agm 52360
_elleta 66304
vecthetanullk_loop 70865
qq 70942
_elleisnum 70945
cxEk 71134
get_periods 72870
compute_periods 72947
red_modSL2 72947
check_periods 72954
set_gamma 73395
gmul3 77203
check_complex 79030
ellR_omega 92652
upper_to_cx 111052
PiI2div 137326
expIPiR 184514
expIPiC 378417
expIxy 596273

Generated by: LCOV version 1.16