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.1 lcov report (development 28676-df828f1c94) Lines: 907 955 95.0 %
Date: 2023-08-26 07:54:43 Functions: 60 61 98.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Baker 3803
CF_1stPass 4054
CheckSol 77
Conj_LH 718
Fl_factorback 62391
GuessQi 186
LLL_1stPass 20146
LargeSols 182
LogHeight 4843
MiddleSols 182
SmallSols 210
T_A_Matrices 247
TrySol 1057
absZ_factor_if_easy 70
absisqrtn 148
abslog 4604
add_pm 182
add_sol 693
argsqr 702
bnfisintnorm 21490
bnfisintnorm_i 21749
bnfisintnormabs 21742
check_pr 20797
check_prinfo 20797
check_y 336406
check_y_root 672700
checktnf 805
errnum 8208
fact 196
filter_sol_Z 70
filter_sol_x 343
fix_partrel 21210
get_B0 1100
get_B0Bx 10866
get_Bx_LLL 2703
get_emb 4645
get_ne 224
get_neabs 28
get_prime_info 247
get_sol_abs 21770
get_unit_1 3185
ideals_by_norm 133
init_get_B 3803
inithue 247
isintnorm_loop 78806
maybe_warn 0
myfloor 363
myround 8686
ne2V_to_xyV 70
ne2_to_xy 679
other_roots 4225
round_to_b 29207
sol_0 21
sols_from_R 140
test_sol 29917
thue 392
thueinit 413
tnf_get_Ind 175
tnf_get_bnf 294
tnf_get_roots 296
vecmax_shallow 4198

Generated by: LCOV version 1.14