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 - basemath - polarit2.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 18906-a425091) Lines: 1498 1725 86.8 %
Date: 2016-05-05 Functions: 121 132 91.7 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1155 1588 72.7 %

Function Name Sort by function name Hit count Sort by hit count
FpV_factorback 49
Fpmul 0
Fppow 49
Lazard 64736
Lazard2 113694
Q_content 86021462
Q_denom 17637408
Q_div_to_int 3682
Q_divi_to_int 13247318
Q_divmuli_to_int 123200
Q_divq_to_int 161863
Q_gcd 61990033
Q_mul_to_int 0
Q_muli_to_int 11319424
Q_primitive_part 10766029
Q_primpart 1224369
Q_remove_denom 1597228
RgXQ_charpoly 59353
RgXQ_inv 139798
RgXQ_ratlift 56
RgX_Rg_mul_i 340816
RgX_disc 1176
RgX_disc_aux 4193
RgX_extgcd 336
RgX_extgcd_simple 0
RgX_gcd 10631891
RgX_gcd_simple 770
RgX_is_irred 63
RgX_is_irred_i 63
RgX_neg_i 113694
RgX_resultant_all 65492
RgX_simpletype 179205
RgX_sturmpart 0
RgX_type 444446
RgX_type_decode 147
RgX_type_is_composite 338858
ZX_content 14497
_pol_0 0
c_is_rational 56
c_zero_gcd 28
caract_const 126
centermod 4684356
centermod_i 7238126
centermodii 102922117
code 175
cont_gcd 3136523
cont_gcd_gen 10976
cont_gcd_pol 2317151
cont_gcd_rfrac 864906
content 73682605
deg1_from_roots 39263
eltmul 2967
eltpow 4689
exact_sturm 1575
factor 39940
factor0 0
factorback 214390
factorback2 668864
fix_lcm 63
fix_pol 2254
gauss_cmp 77
gauss_factor 42
gauss_factor_p 35
gauss_gcd 49
gauss_normal 112
gauss_primpart 42
gauss_primpart_try 70
gbezout 273
gcdext0 273
gcdiq 810244
gcdmonome 7154507
gcdqq 1255269
gdivexact 4204953
gen_factorback 675234
ggcd 21747415
ggcd0 3777
ginvmod 4578
glcm 3101
glcm0 2877
gp_factor0 36951
idealfactorback 875
idmul 147
idmulred 0
idpow 966
idpowred 56
inexact 26093402
init_resultant 87982
isinexactall 6987087
isirreducible 63
mul 1290965
must_negate 3241
newtonpoly 7
nextSousResultant 113694
nffactorback 2198
normalized_mul 414461
normalized_to_RgX 262366
padic_gcd 133
pol_approx0 2079
poldisc0 3031
polresultant0 1323
polresultantext 770
polresultantext0 798
polsym 8106
polsym_gen 23597
powi 1959243
primitive_part 1493017
primpart 3164
reduceddiscsmith 7
reductum_lg 337946
resultant2 21
resultant_all 87961
rnfcharpoly 224
roots_from_deg1 959
roots_to_pol 237588
roots_to_pol_r1 24778
s_centermod 0
scal_lcm 2898
scalar_bezout 112
scalar_res 0
sturmpart 819
sturmpart_i 819
subres_step 262476
subresext 0
subresext_i 140596
sylvester_col 133
sylvestermatrix 7
sylvestermatrix_i 28
triv_cont_gcd 357
vec_lcm 0
zero_bezout 63
zero_extgcd 28
zero_gcd 8175548

Generated by: LCOV version 1.9