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 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.10.0 lcov report (development 20459-9710128) Lines: 667 727 91.7 %
Date: 2017-04-29 05:33:44 Functions: 55 58 94.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Llambda 546
Lpoints 522
baby_init 30
baby_init2 0
baby_init3 30
baby_size 522
best_lift 20520
best_point 20520
ellL1 330
ellL1_add 389976
ellL1_bitprec 510
ellL1_der 546
ellL1_eval 546
ellanal_globalred_all 372
ellanalyticrank 0
ellanalyticrank_bitprec 30
ellgammafactor 546
ellheegner 42
ellmoddegree 48
fa_shift2 30
find_div 30
gcduii 14076
gen_BG_add 1670922
gen_BG_init 60
gen_BG_rec 60
get_bad 30
glambda 546
heegner_L1 2487354
heegner_L1_bg 0
heegner_find_disc 30
heegner_find_point 30
heegner_indexmult 30
heegner_indexmultD 42
heegner_psi 30
heegner_try_point 744
heightQ 60
hnaive_max 60
lambda1 72
lambdalist 30
lift_points 1968
listDisc 30
listfill 127656
listheegner 300
logboundG0 522
logplusQ 84
ltwist1 42
nexti 5634
omega_N_D 42
param_points 522
qfb_mult 20520
qfb_root 114
qfmin_eval 10542
qimag2 20520
rootno 114
testDisc 6954
vecF 522
vecF2_lk 492
vecF2_lk_bsgs 30

Generated by: LCOV version 1.11