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

Generated by: LCOV version 1.14