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 16375-9f41ae0) Lines: 675 698 96.7 %
Date: 2014-04-19 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 23940
best_point 23940
compute_Gr_Sx 799680
compute_Gr_VSx 59815
cutoff_point 189
ellL1 7
ellL1_bitprec 133
ellL1_i 189
ell_apply_globalred_all 49
ellanalyticrank 35
ellheegner 49
ellld_L1 798273
ellld_L1r0 332920
ellld_L1r1 487928
estimate_prec_Sx 287
fa_shift2 35
fillstep 70
find_div 35
gcduii 16422
gen_BG_add 2407776
gen_BG_init 224
gen_BG_rec 224
get_baby_giant 3234833
get_bad 35
heegner_L1 2901913
heegner_find_disc 35
heegner_find_point 35
heegner_indexmult 35
heegner_indexmultD 49
heegner_psi 35
heegner_try_point 868
heightQ 70
hnaive_max 70
init_A 28
init_G 189
init_alpha 28
init_el 161
lambda1 84
lambdalist 35
lift_points 2296
listDisc 35
listfill 148932
listheegner 350
logplusQ 98
ltwist1 49
nexti 6573
number_of_terms_Sx 28
omega_N_D 49
qfb_mult 23940
qfb_root 133
qfmin_eval 12299
qimag2 23940
rootno 133
testDisc 8113
twistcurve 49

Generated by: LCOV version 1.9