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 16624-25b9976) Lines: 641 659 97.3 %
Date: 2014-06-24 Functions: 55 55 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 286 337 84.9 %

Function Name Sort by function name Hit count Sort by hit count
Llambda 240
Lpoints 220
baby_init 220
best_lift 17100
best_point 17100
ellL1 110
ellL1_add 802467
ellL1_bitprec 200
ellL1_der 240
ellL1_eval 240
ellanal_globalred_all 80
ellanalyticrank 25
ellanalyticrank_bprec 25
ellgammafactor 240
ellheegner 35
fa_shift2 25
fillstep 50
find_div 25
gcduii 11730
gen_BG_add 1598212
gen_BG_init 245
gen_BG_rec 245
get_baby_giant 2072795
get_bad 25
glambda 240
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
lambda1 60
lambdalist 25
lift_points 1640
listDisc 25
listfill 106380
listheegner 250
logboundG0 220
logplusQ 70
ltwist1 35
nexti 4695
omega_N_D 35
param_points 220
qfb_mult 17100
qfb_root 95
qfmin_eval 8785
qimag2 17100
rootno 95
testDisc 5795
twistcurve 35
vecF 220
vecF2_lk_bsgs 220

Generated by: LCOV version 1.9