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 to exceed 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.12.0 lcov report (development 23171-a5c0ed393) Lines: 669 733 91.3 %
Date: 2018-10-20 05:38:07 Functions: 55 59 93.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
baby_init2 0
ellL1 0
ellanalyticrank 0
heegner_L1_bg 0
baby_init 35
baby_init3 35
ellanalyticrank_bitprec 35
fa_shift2 35
find_div 35
get_bad 35
heegner_find_disc 35
heegner_find_point 35
heegner_indexmult 35
heegner_psi 35
lambdalist 35
listDisc 35
vecF2_lk_bsgs 35
ellheegner 49
heegner_indexmultD 49
ltwist1 49
omega_N_D 49
ellisobound 56
ellmoddegree 56
gen_BG_init 70
gen_BG_rec 70
heightQ 70
hnaive_max 70
lambda1 84
logplusQ 98
ellanal_globalred_all 133
qfb_root 133
rootno 133
vecF2_lk 189
ellL1_bitprec 210
Lpoints 224
baby_size 224
logboundG0 224
param_points 224
vecF 224
Llambda 252
ellL1_der 252
ellL1_eval 252
ellgammafactor 252
glambda 252
listheegner 350
heegner_try_point 868
lift_points 2296
nexti 6573
testDisc 8113
qfmin_eval 12299
gcduii 16422
best_lift 23940
best_point 23940
qfb_mult 23940
qimag2 23940
listfill 148932
ellL1_add 454972
gen_BG_add 1949409
heegner_L1 2901913

Generated by: LCOV version 1.13