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 16791-0d1274a) Lines: 770 834 92.3 %
Date: 2014-09-16 Functions: 52 53 98.1 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 437 559 78.2 %

Function Name Sort by function name Hit count Sort by hit count
Baker 1605
CF_1stPass 425
CheckSol 14650
Conj_LH 250
GuessQi 75
LLL_1stPass 11155
LargeSols 85
LogHeight 1860
MiddleSols 85
RgX_homogenize 70
SmallSols 100
T_A_Matrices 95
absisqrtn 60
abslog 5130
add_pm 90
add_sol 425
bnfisintnorm 15115
bnfisintnorm_i 15140
bnfisintnormabs 15135
check_y 206540
check_y_root 413000
checktnf 430
distoZ 14650
errnum 925
fact 95
filter_sol_x 175
fix_partrel 15135
get_B0 100
get_B0Bx 6190
get_Bx_LLL 1505
get_emb 1770
get_ne 105
get_neabs 20
get_sol_abs 15095
get_unit_1 2155
init_get_B 1605
inithue 95
isintnorm_loop 52810
logabs 95
maybe_warn 0
myfloor 180
myround 3587
ne2V_to_xyV 30
ne2_to_xy 350
sol_0 15
sols_from_R 100
test_sol 19385
thue 210
thueinit 220
tnf_get_Ind 80
tnf_get_bnf 140
tnf_get_roots 100
vecmax_shallow 1910

Generated by: LCOV version 1.9