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 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.10.0 lcov report (development 20443-183d202) Lines: 883 938 94.1 %
Date: 2017-03-27 05:17:48 Functions: 59 60 98.3 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Baker 2665
CF_1stPass 3215
CheckSol 55
Conj_LH 445
Fl_factorback 45480
GuessQi 105
LLL_1stPass 13360
LargeSols 120
LogHeight 3090
MiddleSols 120
RgX_homogenize 70
SmallSols 135
T_A_Matrices 140
TrySol 850
absisqrtn 65
abslog 3175
add_pm 115
add_sol 455
argsqr 420
bnfisintnorm 15155
bnfisintnorm_i 15180
bnfisintnormabs 15175
check_pr 15160
check_prinfo 15160
check_y 207175
check_y_root 414270
checktnf 510
errnum 6535
fact 130
filter_sol_Z 35
filter_sol_x 215
fix_partrel 15135
get_B0 850
get_B0Bx 7380
get_Bx_LLL 1815
get_emb 3000
get_ne 145
get_neabs 20
get_prime_info 140
get_sol_abs 15135
get_unit_1 2175
init_get_B 2665
inithue 140
isintnorm_loop 53530
maybe_warn 0
myfloor 230
myround 5920
ne2V_to_xyV 35
ne2_to_xy 380
other_roots 2920
round_to_b 21540
sol_0 15
sols_from_R 100
test_sol 19785
thue 250
thueinit 260
tnf_get_Ind 115
tnf_get_bnf 180
tnf_get_roots 190
vecmax_shallow 2870

Generated by: LCOV version 1.11