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-bordeaux1.fr machine (x86_64 architecture), and agregate them in the final report:

The target is 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.8.0 lcov report (development 16393-29b9383) Lines: 675 698 96.7 %
Date: 2014-04-24 Functions: 55 55 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 334 393 85.0 %

Function Name Sort by function name Hit count Sort by hit count
best_lift 17100
best_point 17100
compute_Gr_Sx 571200
compute_Gr_VSx 42725
cutoff_point 135
ellL1 5
ellL1_bitprec 95
ellL1_i 135
ell_apply_globalred_all 35
ellanalyticrank 25
ellheegner 35
ellld_L1 570195
ellld_L1r0 237800
ellld_L1r1 348520
estimate_prec_Sx 205
fa_shift2 25
fillstep 50
find_div 25
gcduii 11730
gen_BG_add 1719840
gen_BG_init 160
gen_BG_rec 160
get_baby_giant 2310595
get_bad 25
heegner_L1 2072795
heegner_find_disc 25
heegner_find_point 25
heegner_indexmult 25
heegner_indexmultD 35
heegner_psi 25
heegner_try_point 620
heightQ 50
hnaive_max 50
init_A 20
init_G 135
init_alpha 20
init_el 115
lambda1 60
lambdalist 25
lift_points 1640
listDisc 25
listfill 106380
listheegner 250
logplusQ 70
ltwist1 35
nexti 4695
number_of_terms_Sx 20
omega_N_D 35
qfb_mult 17100
qfb_root 95
qfmin_eval 8785
qimag2 17100
rootno 95
testDisc 5795
twistcurve 35

Generated by: LCOV version 1.9