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) Coverage Total Hit
Test: PARI/GP v2.18.1 lcov report (development 31042-0fbe168e69) Lines: 93.0 % 1479 1376
Test Date: 2026-07-23 17:04:59 Functions: 97.4 % 116 113
Legend: Lines:     hit not hit

Function Name Sort by function name Hit count Sort by function hit count
ellwp 0
vecthetanullk 0
vecthetanullk_tau 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
check_unit_disc 21
ellQp_P2t_err 21
ser_addmulXn 21
RgXn_eta 28
sumdedekind 28
zellrealneg 28
thetanull 35
trueeta 35
apply_eta_correction 42
elljacobi_cx 42
ellwpseries 42
jell 42
weber0 42
ellQp_t2P 56
zell_closest_0 56
autojtauprime 70
doellR_eta 70
elljacobi 70
ellzeta_cx 70
theta11prime 70
zellrealpos 70
eta 77
cxanalyze 84
elleta 84
ellR_eta 98
equali01 112
eta0 112
ellQp_P2t 133
expIxy 147
theta 154
ellzeta 161
ellwp0 182
get_r0 182
thetaflag 182
elleis_from_wp 231
cxredsl2 294
get_c4c6 294
cxredsl2_i 336
Ek_from_wp 392
gadd3 406
cxE4E6 427
isqreal 427
elleisnum0 448
thetanull_i 455
coeffEu 476
ellwpseries_aux 553
sqrt32 2079
double_eta_quotient 2093
expIPiQ 2170
E2_correction 4025
PiI2div_sqr 4725
elleisnum 4781
elleisnum_testk 5222
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
zellcx 28735
ellperiods 28756
zell_i 28833
zell 28973
ellsigma_cx 37569
ellsigma 37674
PiI2div 41685
vecthetanullk_loop 42039
qq 42116
cxEk 42385
ellomega_cx 42864
doellR_omega 52577
ellomega_agm 52577
elleta_W 66374
ispair 71435
_period 75208
e12 91155
expIPifrac 128098
real2nQ 160560
gmul4 181909
ellwp_cx 181972
pointell 181972
ellwpnum_all 181993
gmul3 182574
expIPiR 192067
reduce_z 219639
pi23 219646
redmod2Z 219807
autojtau 220192
thetaall 220192
thetaprec 220269
set_gamma 224742
get_periods 253211
compute_periods 253288
red_modSL2 253288
check_periods 253295
upper_to_cx 262413
ellR_omega 273833
clearimall 377636
check_complex 525588
expIPiC 783654
clearim 1510544

Generated by: LCOV version 2.0-1