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 - basemath - polarit2.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 17727-c4b959b) Lines: 1506 1742 86.5 %
Date: 2015-04-18 Functions: 123 133 92.5 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1152 1600 72.0 %

Function Name Sort by function name Hit count Sort by hit count
Lazard 17864
Lazard2 21532
Q_content 83857605
Q_denom 12472994
Q_div_to_int 3668
Q_divi_to_int 12374638
Q_divmuli_to_int 20085
Q_divq_to_int 160368
Q_gcd 60850826
Q_mul_to_int 0
Q_muli_to_int 9880780
Q_primitive_part 10305701
Q_primpart 1180274
Q_remove_denom 1348284
RgXQ_charpoly 13083
RgXQ_inv 120198
RgXQ_ratlift 56
RgX_Rg_mul_i 64778
RgX_disc 833
RgX_disc_aux 3850
RgX_extgcd 315
RgX_extgcd_simple 0
RgX_gcd 10517357
RgX_gcd_simple 1127
RgX_is_irred 63
RgX_is_irred_i 63
RgX_neg_i 21532
RgX_resultant_all 17934
RgX_simpletype 84075
RgX_sturmpart 0
RgX_type 318915
RgX_type_decode 140
RgX_type_is_composite 316640
ZX_content 14434
_domul 2744904
_pol_0 0
c_is_rational 56
c_zero_gcd 28
caract_const 119
centermod 4557611
centermod_i 7146505
centermodii 104390591
code 175
cont_gcd 3084849
cont_gcd_gen 9002
cont_gcd_pol 2267451
cont_gcd_rfrac 864906
content 73360375
deg1_from_roots 38591
divide_conquer_assoc 1663816
divide_conquer_prod 1044966
eltmul 2367
eltpow 3508
exact_sturm 1113
factor 38707
factor0 0
factorback 17213
factorback2 470547
fix_lcm 49
fix_pol 84
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 474730
gcdmonome 7154395
gcdqq 962870
gdivexact 2870239
gen_factorback 474908
ggcd 21544772
ggcd0 1411
ginvmod 4459
glcm 3017
glcm0 2849
gp_factor0 36195
idealfactorback 868
idmul 140
idmulred 0
idpow 952
idpowred 56
inexact 25050934
init_resultant 40480
is_rational 105
isinexactall 6758712
isirreducible 63
mul 1030057
must_negate 3556
newtonpoly 7
nextSousResultant 21532
nffactorback 1617
normalized_mul 620510
normalized_to_RgX 475294
padic_gcd 91
pol_approx0 2849
poldisc0 3031
polresultant0 238
polresultantext 749
polresultantext0 777
polsym 6216
polsym_gen 21364
powi 1500275
primitive_part 1362524
primpart 2884
reduceddiscsmith 7
reductum_lg 61859
resultant2 21
resultant_all 40459
rnfcharpoly 224
roots_from_deg1 609
roots_to_pol 450747
roots_to_pol_r1 24547
s_centermod 0
scal_lcm 2856
scalar_bezout 112
scalar_res 0
sturmpart 581
sturmpart_i 581
subres_step 204117
subresext 0
subresext_i 120975
sylvester_col 133
sylvestermatrix 7
sylvestermatrix_i 28
triv_cont_gcd 357
vec_lcm 0
zero_bezout 63
zero_extgcd 28
zero_gcd 8165706

Generated by: LCOV version 1.9