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 to exceed 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.16.2 lcov report (development 29115-f22e516b23) Lines: 906 954 95.0 %
Date: 2024-04-19 08:07:09 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
absZ_factor_if_easy 70
filter_sol_Z 70
ne2V_to_xyV 70
CheckSol 77
absisqrtn 113
ideals_by_norm 133
sols_from_R 140
tnf_get_Ind 175
LargeSols 182
MiddleSols 182
add_pm 182
GuessQi 183
fact 196
SmallSols 210
T_A_Matrices 214
get_prime_info 214
inithue 214
get_ne 224
tnf_get_roots 241
tnf_get_bnf 294
filter_sol_x 343
myfloor 362
thue 392
thueinit 413
Conj_LH 630
argsqr 632
ne2_to_xy 679
add_sol 693
checktnf 805
TrySol 1102
get_B0 1111
get_Bx_LLL 2659
get_unit_1 3108
Baker 3770
init_get_B 3770
vecmax_shallow 4097
other_roots 4159
CF_1stPass 4177
get_emb 4225
LogHeight 4412
abslog 4540
errnum 8519
myround 8547
get_B0Bx 10834
LLL_1stPass 20175
check_pr 20813
check_prinfo 20813
fix_partrel 21210
bnfisintnorm 21490
bnfisintnormabs 21742
bnfisintnorm_i 21749
get_sol_abs 21769
round_to_b 29476
test_sol 29915
Fl_factorback 62439
isintnorm_loop 78800
check_y 336406
check_y_root 672700

Generated by: LCOV version 1.14