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 17110-9967e23) Lines: 802 856 93.7 %
Date: 2014-11-26 Functions: 54 55 98.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 481 591 81.4 %

Function Name Sort by function name Hit count Sort by hit count
Baker 3885
CF_1stPass 7939
CheckSol 15443
Conj_LH 454
GuessQi 90
LLL_1stPass 12689
LargeSols 105
LogHeight 5126
MiddleSols 105
RgX_homogenize 70
SmallSols 120
T_A_Matrices 157
TrySol 2126
absisqrtn 60
abslog 11970
add_pm 140
add_sol 480
argsqr 300
bnfisintnorm 15135
bnfisintnorm_i 15160
bnfisintnormabs 15155
check_y 205615
check_y_root 411150
checktnf 470
errnum 15958
fact 115
filter_sol_x 195
fix_partrel 15135
get_B0 2131
get_B0Bx 7144
get_Bx_LLL 1754
get_emb 4986
get_ne 125
get_neabs 20
get_sol_abs 15115
get_unit_1 2175
init_get_B 3885
inithue 157
isintnorm_loop 53310
logabs 157
maybe_warn 0
myfloor 201
myround 8430
ne2V_to_xyV 30
ne2_to_xy 350
round_to_b 35611
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 174
vecmax_shallow 4102

Generated by: LCOV version 1.9