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.0 lcov report (development 29806-4d001396c7) Lines: 683 785 87.0 %
Date: 2024-12-22 09:08:28 Functions: 64 69 92.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Llambda 273
Lpoints 245
QXQV_inv 42
_sqrt 13531
baby_init 0
baby_init2 0
baby_init3 42
baby_size 245
best_lift 24668
best_point 24668
ellL1 231
ellL1_add 0
ellL1_der 273
ellL1_eval 273
ellanal_globalred_all 154
ellanalyticrank 35
ellgammafactor 273
ellheegner 56
ellisobound 70
ellmoddegree 70
etnf_get_M 140
etnf_get_varn 49
etnf_to_basis 196
etnfnewprec 42
fa_shift2 42
find_div 42
gcduii 16436
gen_BG_add 1661632
gen_BG_init 42
gen_BG_rec 42
getA 140
get_bad 42
glambda 273
heegner_L1 2869580
heegner_L1_bg 0
heegner_descent_try_point 98
heegner_find_disc 42
heegner_find_point 42
heegner_indexmult 42
heegner_indexmultD 56
heegner_psi 42
heegner_try_point 1785
heightQ 98
hnaive_max 98
lambda1 91
lambdalist 42
lift_points 2478
listDisc 42
listfill 166880
listheegner 420
logboundG0 245
logplusQ 147
ltwist1 56
makenfA 42
nexti 6580
nf_to_basis 399
omega_N_D 56
param_points 245
qfb_mult 24668
qfb_root 147
qfmin_eval 12313
qimag2 24668
rootno 147
testDisc 8652
vecF 245
vecF2_lk 245
vecF2_lk_bsgs 0
vec_etnf_to_basis 49
vecelnfembed 42

Generated by: LCOV version 1.16