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.18.0 lcov report (development 29712-7c8a932571) Lines: 939 987 95.1 %
Date: 2024-11-15 09:08:45 Functions: 63 64 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
bnf_get_lastp 28
get_neabs 28
absZ_factor_if_easy 70
filter_sol_Z 70
ne2V_to_xyV 70
CheckSol 77
absisqrtn 113
sols_from_R 140
ideals_by_norm 161
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
bnfisintnormabs 252
tnf_get_bnf 294
filter_sol_x 343
myfloor 362
thue 392
thueinit 413
bnfisintnorm 476
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 3038
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 10832
LLL_1stPass 20178
check_pr 20813
check_prinfo 20813
bnfisintnorm0 21518
fix_partrel 21665
bnfisintnormabs0 21770
bnfisintnorm_i 21777
get_sol_abs 21812
round_to_b 29476
test_sol 30275
Fl_factorback 62439
isintnorm_loop 79485
check_y 336406
check_y_root 672700

Generated by: LCOV version 1.16