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 16393-29b9383) Lines: 723 783 92.3 %
Date: 2014-04-24 Functions: 45 45 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 399 521 76.6 %

Function Name Sort by function name Hit count Sort by hit count
Baker 1585
CF_1stPass 405
CheckSol 14405
Conj_LH 210
GuessQi 60
LLL_1stPass 11103
LargeSols 65
LogHeight 1800
MiddleSols 65
RgX_homogenize 50
SmallSols 75
T_A_Matrices 75
absisqrtn 40
abslog 5090
add_pm 60
add_sol 275
bnfisintnorm 15075
bnfisintnormabs 15075
check_y 205795
check_y_root 411560
checktnf 240
distoZ 14405
errnum 870
fact 75
filter_sol_x 95
fix_partrel 15115
get_B0 95
get_B0Bx 6319
get_Bx_LLL 1490
get_emb 1730
get_sol_abs 15035
get_unit_1 2095
init_get_B 1585
inithue 75
isintnorm_loop 52455
logabs 75
myfloor 135
myround 3486
new_sol 275
sol_0 10
test_sol 19150
thue 115
thueinit 125
tnf_get_roots 80
vecmax_shallow 1830

Generated by: LCOV version 1.9