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 29806-4d001396c7) Lines: 937 985 95.1 %
Date: 2024-12-21 09:08:57 Functions: 63 64 98.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Baker 3770
CF_1stPass 4177
CheckSol 77
Conj_LH 630
Fl_factorback 62439
GuessQi 183
LLL_1stPass 20178
LargeSols 182
LogHeight 4412
MiddleSols 182
SmallSols 210
T_A_Matrices 214
TrySol 1102
absZ_factor_if_easy 70
absisqrtn 113
abslog 4540
add_pm 182
add_sol 693
argsqr 632
bnf_get_lastp 28
bnfisintnorm 476
bnfisintnorm0 21518
bnfisintnorm_i 21777
bnfisintnormabs 252
bnfisintnormabs0 21770
check_pr 20813
check_prinfo 20813
check_y 336406
check_y_root 672700
checktnf 805
errnum 8519
fact 196
filter_sol_Z 70
filter_sol_x 343
fix_partrel 21665
get_B0 1111
get_B0Bx 10832
get_Bx_LLL 2659
get_emb 4225
get_ne 224
get_neabs 28
get_prime_info 214
get_sol_abs 21812
get_unit_1 3038
ideals_by_norm 161
init_get_B 3770
inithue 214
isintnorm_loop 79485
maybe_warn 0
myfloor 362
myround 8547
ne2V_to_xyV 70
ne2_to_xy 679
other_roots 4159
round_to_b 29476
sol_0 21
sols_from_R 140
test_sol 30275
thue 392
thueinit 413
tnf_get_Ind 175
tnf_get_bnf 294
tnf_get_roots 241
vecmax_shallow 4097

Generated by: LCOV version 1.16