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 21351-66b5338) Lines: 883 938 94.1 %
Date: 2017-11-22 06:21:08 Functions: 59 60 98.3 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
maybe_warn 0
sol_0 21
get_neabs 28
filter_sol_Z 49
ne2V_to_xyV 49
CheckSol 77
absisqrtn 91
RgX_homogenize 98
sols_from_R 140
GuessQi 147
add_pm 161
tnf_get_Ind 161
LargeSols 168
MiddleSols 168
fact 182
SmallSols 189
T_A_Matrices 195
get_prime_info 195
inithue 195
get_ne 203
tnf_get_bnf 252
tnf_get_roots 267
filter_sol_x 301
myfloor 323
thue 350
thueinit 364
ne2_to_xy 532
argsqr 588
Conj_LH 623
add_sol 637
checktnf 714
TrySol 1220
get_B0 1220
get_Bx_LLL 2510
get_unit_1 3045
Baker 3730
init_get_B 3730
vecmax_shallow 4016
other_roots 4086
get_emb 4212
LogHeight 4335
abslog 4442
CF_1stPass 4609
myround 8284
errnum 9365
get_B0Bx 10194
LLL_1stPass 18528
fix_partrel 21189
get_sol_abs 21189
bnfisintnorm 21217
check_pr 21241
check_prinfo 21241
bnfisintnormabs 21245
bnfisintnorm_i 21252
test_sol 27699
round_to_b 30392
Fl_factorback 63723
isintnorm_loop 74942
check_y 290045
check_y_root 579978

Generated by: LCOV version 1.11