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 17774-15dbd24) Lines: 879 931 94.4 %
Date: 2015-04-26 Functions: 58 59 98.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 522 639 81.7 %

Function Name Sort by function name Hit count Sort by hit count
Baker 3730
CF_1stPass 4609
CheckSol 77
Conj_LH 623
Fl_factorback 63345
GuessQi 147
LLL_1stPass 18542
LargeSols 168
LogHeight 4335
MiddleSols 168
RgX_homogenize 98
SmallSols 189
T_A_Matrices 195
TrySol 1220
absisqrtn 91
abslog 4442
add_pm 161
add_sol 637
argsqr 588
bnfisintnorm 21210
bnfisintnorm_i 21245
bnfisintnormabs 21238
check_pr 21115
check_prinfo 21115
check_y 290045
check_y_root 579978
checktnf 700
errnum 9365
fact 182
filter_sol_x 294
fix_partrel 21189
get_B0 1220
get_B0Bx 10182
get_Bx_LLL 2510
get_emb 4212
get_ne 196
get_neabs 28
get_prime_info 195
get_sol_abs 21182
get_unit_1 3045
init_get_B 3730
inithue 195
isintnorm_loop 74921
maybe_warn 0
myfloor 323
myround 8285
ne2V_to_xyV 42
ne2_to_xy 490
other_roots 4086
round_to_b 30358
sol_0 21
sols_from_R 140
test_sol 27685
thue 343
thueinit 357
tnf_get_Ind 161
tnf_get_bnf 245
tnf_get_roots 267
vecmax_shallow 4016

Generated by: LCOV version 1.9