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 16962-5a32637) Lines: 771 835 92.3 %
Date: 2014-10-29 Functions: 52 53 98.1 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 437 559 78.2 %

Function Name Sort by function name Hit count Sort by hit count
Baker 2247
CF_1stPass 595
CheckSol 20510
Conj_LH 350
GuessQi 105
LLL_1stPass 15617
LargeSols 119
LogHeight 2604
MiddleSols 119
RgX_homogenize 98
SmallSols 140
T_A_Matrices 133
absisqrtn 84
abslog 7182
add_pm 126
add_sol 595
bnfisintnorm 21161
bnfisintnorm_i 21196
bnfisintnormabs 21189
check_y 289156
check_y_root 578200
checktnf 602
distoZ 20510
errnum 1295
fact 133
filter_sol_x 245
fix_partrel 21189
get_B0 140
get_B0Bx 8666
get_Bx_LLL 2107
get_emb 2478
get_ne 147
get_neabs 28
get_sol_abs 21133
get_unit_1 3017
init_get_B 2247
inithue 133
isintnorm_loop 73934
logabs 133
maybe_warn 0
myfloor 252
myround 5006
ne2V_to_xyV 42
ne2_to_xy 490
sol_0 21
sols_from_R 140
test_sol 27139
thue 294
thueinit 308
tnf_get_Ind 112
tnf_get_bnf 196
tnf_get_roots 140
vecmax_shallow 2674

Generated by: LCOV version 1.9