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 - modules - thue.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 17097-9391e68) Lines: 787 845 93.1 %
Date: 2014-11-21 Functions: 52 53 98.1 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 460 571 80.6 %

Function Name Sort by function name Hit count Sort by hit count
Baker 3077
CF_1stPass 4957
CheckSol 14774
Conj_LH 409
GuessQi 90
LLL_1stPass 12689
LargeSols 132
LogHeight 4001
MiddleSols 105
RgX_homogenize 70
SmallSols 120
T_A_Matrices 142
absisqrtn 60
abslog 9546
add_pm 115
add_sol 455
bnfisintnorm 15135
bnfisintnorm_i 15160
bnfisintnormabs 15155
check_y 206575
check_y_root 413070
checktnf 470
distoZ 38399
errnum 9994
fact 115
filter_sol_x 195
fix_partrel 15135
get_B0 1323
get_B0Bx 7144
get_Bx_LLL 1754
get_emb 3876
get_ne 125
get_neabs 20
get_sol_abs 15115
get_unit_1 2175
init_get_B 3077
inithue 142
isintnorm_loop 53310
logabs 142
maybe_warn 0
myfloor 206
myround 6748
ne2V_to_xyV 30
ne2_to_xy 350
sol_0 15
sols_from_R 100
test_sol 19695
thue 230
thueinit 240
tnf_get_Ind 100
tnf_get_bnf 160
tnf_get_roots 159
vecmax_shallow 3529

Generated by: LCOV version 1.9