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 17110-9967e23) Lines: 672 731 91.9 %
Date: 2014-11-26 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 235
Lpoints 215
baby_init 25
baby_init2 0
baby_init3 25
baby_size 215
best_lift 17100
best_point 17100
ellL1 115
ellL1_add 324980
ellL1_bitprec 205
ellL1_der 235
ellL1_eval 235
ellanal_globalred_all 85
ellanalyticrank 25
ellanalyticrank_bprec 25
ellgammafactor 235
ellheegner 35
fa_shift2 25
find_div 25
gcduii 11730
gen_BG_add 1392435
gen_BG_init 50
gen_BG_rec 50
get_bad 25
glambda 235
heegner_L1 2072795
heegner_L1_bg 0
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
lambda1 60
lambdalist 25
lift_points 1640
listDisc 25
listfill 106380
listheegner 250
logboundG0 215
logplusQ 70
ltwist1 35
nexti 4695
omega_N_D 35
param_points 215
qfb_mult 17100
qfb_root 95
qfmin_eval 8785
qimag2 17100
rootno 95
testDisc 5795
twistcurve 35
vecF 215
vecF2_lk 190
vecF2_lk_bsgs 25

Generated by: LCOV version 1.9