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 29815-a300ec5c34) Lines: 683 785 87.0 %
Date: 2024-12-26 09:08:56 Functions: 64 69 92.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
baby_init 0
baby_init2 0
ellL1_add 0
heegner_L1_bg 0
vecF2_lk_bsgs 0
ellanalyticrank 35
QXQV_inv 42
baby_init3 42
etnfnewprec 42
fa_shift2 42
find_div 42
gen_BG_init 42
gen_BG_rec 42
get_bad 42
heegner_find_disc 42
heegner_find_point 42
heegner_indexmult 42
heegner_psi 42
lambdalist 42
listDisc 42
makenfA 42
vecelnfembed 42
etnf_get_varn 49
vec_etnf_to_basis 49
ellheegner 56
heegner_indexmultD 56
ltwist1 56
omega_N_D 56
ellisobound 70
ellmoddegree 70
lambda1 91
heegner_descent_try_point 98
heightQ 98
hnaive_max 98
etnf_get_M 140
getA 140
logplusQ 147
qfb_root 147
rootno 147
ellanal_globalred_all 154
etnf_to_basis 196
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
heegner_try_point 1785
lift_points 2478
nexti 6580
testDisc 8652
qfmin_eval 12313
_sqrt 13531
gcduii 16436
best_lift 24668
best_point 24668
qfb_mult 24668
qimag2 24668
listfill 166880
gen_BG_add 1661632
heegner_L1 2869580

Generated by: LCOV version 1.16