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 30258-3ec8de0880) Lines: 1388 1523 91.1 %
Date: 2025-05-10 09:18:45 Functions: 110 115 95.7 %
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.16