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 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.10.0 lcov report (development 20459-9710128) Lines: 883 938 94.1 %
Date: 2017-04-27 05:33:52 Functions: 59 60 98.3 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Baker 3198
CF_1stPass 3858
CheckSol 66
Conj_LH 534
Fl_factorback 54576
GuessQi 126
LLL_1stPass 16032
LargeSols 144
LogHeight 3708
MiddleSols 144
RgX_homogenize 84
SmallSols 162
T_A_Matrices 168
TrySol 1020
absisqrtn 78
abslog 3810
add_pm 138
add_sol 546
argsqr 504
bnfisintnorm 18186
bnfisintnorm_i 18216
bnfisintnormabs 18210
check_pr 18192
check_prinfo 18192
check_y 248610
check_y_root 497124
checktnf 612
errnum 7842
fact 156
filter_sol_Z 42
filter_sol_x 258
fix_partrel 18162
get_B0 1020
get_B0Bx 8856
get_Bx_LLL 2178
get_emb 3600
get_ne 174
get_neabs 24
get_prime_info 168
get_sol_abs 18162
get_unit_1 2610
init_get_B 3198
inithue 168
isintnorm_loop 64236
maybe_warn 0
myfloor 276
myround 7104
ne2V_to_xyV 42
ne2_to_xy 456
other_roots 3504
round_to_b 25848
sol_0 18
sols_from_R 120
test_sol 23742
thue 300
thueinit 312
tnf_get_Ind 138
tnf_get_bnf 216
tnf_get_roots 228
vecmax_shallow 3444

Generated by: LCOV version 1.11