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) Coverage Total Hit
Test: PARI/GP v2.18.1 lcov report (development 31041-bd73e9fcdd) Lines: 88.7 % 986 875
Test Date: 2026-07-22 22:45:42 Functions: 92.0 % 87 80
Legend: Lines:     hit not hit

Function Name Sort by function name Hit count Sort by function hit count
baby_init 0
baby_init2 0
ctoc 0
ellL1_add 0
ellheegner_z 0
heegner_L1_bg 0
vecF2_lk_bsgs 0
ellanalyticrank 35
ellheegnertwist 35
findpoint 35
findtwist 35
heegnertwistdisc 35
QXQV_inv 42
RgV_zv_powers 42
baby_init3 42
ellheegner_z_i 42
etnf_M 42
etnf_get_varn 42
etnfnewprec 42
fa_shift2 42
find_div 42
gen_BG_init 42
gen_BG_rec 42
heegner_find_disc 42
heegner_find_point 42
heegner_psi 42
lambdalist 42
listDisc 42
makenfA 42
to_primary 42
vecelnfembed 42
vec_etnf_to_basis 49
ellheegner 56
ellheegner_init 56
heegner_indexmultD 56
ltwist1 56
ellisobound 70
ellmoddegree 70
get_bad 70
lambda1 91
heegner_descent_try_point 98
heightQ 98
hnaive_max 98
listheegnertwist 105
get_w 112
sumheegner 112
torstoz 112
getA 140
listpointstwist 147
logplusQ 147
qfb_root 147
rootno 147
omega_N_D 168
etnf_to_basis 196
ellanal_globalred_all 224
ellL1 231
Lpoints 245
baby_size 245
logboundG0 245
param_points 245
vecF 245
vecF2_lk 245
Llambda 273
ellL1_der 273
ellL1_eval 273
ellgammafactor 273
glambda 273
nf_to_basis 399
listheegner 420
finddivis 770
heegner_try_point 1785
lift_points 2478
heegnersum_worker 2503
heegnersum 2505
nexti 6594
testDisc 8736
qfmin_eval 12334
_sqrt 13531
gcduii 16443
best_lift 24668
best_point 24668
qfb_mult 24668
qimag2 24668
normformsbeta 112483
gen_BG_add 3431482
_gen_cmul 5836413
heegner_L1 6088496

Generated by: LCOV version 2.0-1