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 16937-4bd9b4e) Lines: 672 731 91.9 %
Date: 2014-10-24 Functions: 56 58 96.6 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 303 371 81.7 %

Function Name Sort by function name Hit count Sort by hit count
Llambda 322
Lpoints 294
baby_init 35
baby_init2 0
baby_init3 35
baby_size 294
best_lift 23940
best_point 23940
ellL1 154
ellL1_add 454972
ellL1_bitprec 280
ellL1_der 322
ellL1_eval 322
ellanal_globalred_all 112
ellanalyticrank 35
ellanalyticrank_bprec 35
ellgammafactor 322
ellheegner 49
fa_shift2 35
find_div 35
gcduii 16422
gen_BG_add 1949409
gen_BG_init 70
gen_BG_rec 70
get_bad 35
glambda 322
heegner_L1 2901913
heegner_L1_bg 0
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
lambda1 84
lambdalist 35
lift_points 2296
listDisc 35
listfill 148932
listheegner 350
logboundG0 294
logplusQ 98
ltwist1 49
nexti 6573
omega_N_D 49
param_points 294
qfb_mult 23940
qfb_root 133
qfmin_eval 12299
qimag2 23940
rootno 133
testDisc 8113
twistcurve 49
vecF 294
vecF2_lk 259
vecF2_lk_bsgs 35

Generated by: LCOV version 1.9