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-bordeaux1.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.8.0 lcov report (development 17238-ce76349) Lines: 873 931 93.8 %
Date: 2014-12-20 Functions: 58 59 98.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 516 639 80.8 %

Function Name Sort by function name Hit count Sort by hit count
Baker 3646
CF_1stPass 4364
CheckSol 7
Conj_LH 567
Fl_factorback 63282
GuessQi 126
LLL_1stPass 17835
LargeSols 154
LogHeight 4209
MiddleSols 154
RgX_homogenize 98
SmallSols 175
T_A_Matrices 181
TrySol 1178
absisqrtn 91
abslog 4274
add_pm 84
add_sol 560
argsqr 588
bnfisintnorm 21196
bnfisintnorm_i 21231
bnfisintnormabs 21224
check_pr 21094
check_prinfo 21094
check_y 290031
check_y_root 579950
checktnf 672
errnum 8854
fact 168
filter_sol_x 280
fix_partrel 21189
get_B0 1178
get_B0Bx 10056
get_Bx_LLL 2468
get_emb 4100
get_ne 182
get_neabs 28
get_prime_info 181
get_sol_abs 21168
get_unit_1 3038
init_get_B 3646
inithue 181
isintnorm_loop 74851
maybe_warn 0
myfloor 295
myround 8045
ne2V_to_xyV 42
ne2_to_xy 490
other_roots 3960
round_to_b 30162
sol_0 21
sols_from_R 140
test_sol 27657
thue 329
thueinit 343
tnf_get_Ind 147
tnf_get_bnf 231
tnf_get_roots 253
vecmax_shallow 3918

Generated by: LCOV version 1.9