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 - ellanal.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.1 lcov report (development 30538-858d92d87d) Lines: 705 798 88.3 %
Date: 2025-11-07 09:22:46 Functions: 66 72 91.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
baby_init 0
baby_init2 0
ctoc 0
ellL1_add 0
heegner_L1_bg 0
vecF2_lk_bsgs 0
ellanalyticrank 35
QXQV_inv 36
RgV_zv_powers 36
baby_init3 36
etnfnewprec 36
gen_BG_init 36
gen_BG_rec 36
heegner_find_point 36
heegner_psi 36
lambdalist 36
makenfA 36
vecelnfembed 36
fa_shift2 42
find_div 42
get_bad 42
heegner_find_disc 42
heegner_indexmult 42
listDisc 42
to_primary 42
etnf_get_varn 43
vec_etnf_to_basis 49
ellheegner 56
heegner_indexmultD 56
ltwist1 56
omega_N_D 56
lambda1 67
ellisobound 70
ellmoddegree 70
heegner_descent_try_point 74
heightQ 98
hnaive_max 98
qfb_root 105
rootno 105
etnf_get_M 110
getA 140
logplusQ 147
ellanal_globalred_all 154
etnf_to_basis 184
ellL1 231
Lpoints 245
baby_size 245
logboundG0 245
param_points 245
vecF 245
vecF2_lk 245
Llambda 267
ellL1_der 267
ellL1_eval 267
ellgammafactor 267
glambda 267
nf_to_basis 363
listheegner 420
heegner_try_point 531
lift_points 2478
normformsbeta 5320
nexti 6594
testDisc 8652
qfmin_eval 12334
_sqrt 13531
gcduii 16443
best_lift 24668
best_point 24668
qfb_mult 24668
qimag2 24668
gen_BG_add 1244860
heegner_L1 2176364

Generated by: LCOV version 1.16