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.1 lcov report (development 22708-0f0e6fe44) Lines: 895 946 94.6 %
Date: 2018-06-18 05:36:21 Functions: 60 61 98.4 %
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
Z_factor_if_easy 63
filter_sol_Z 63
ne2V_to_xyV 63
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
T_A_Matrices 195
get_prime_info 195
inithue 195
SmallSols 196
get_ne 203
tnf_get_roots 267
tnf_get_bnf 273
filter_sol_x 322
myfloor 330
thue 371
thueinit 385
ne2_to_xy 567
argsqr 588
Conj_LH 623
add_sol 651
checktnf 756
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 289989
check_y_root 579866

Generated by: LCOV version 1.13