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 16804-345a01c) Lines: 1508 1734 87.0 %
Date: 2014-09-20 Functions: 123 133 92.5 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1158 1605 72.1 %

Function Name Sort by function name Hit count Sort by hit count
Lazard 16072
Lazard2 19866
Q_content 76563761
Q_denom 10098490
Q_div_to_int 2485
Q_divi_to_int 11626816
Q_divmuli_to_int 24633
Q_divq_to_int 150262
Q_gcd 54365817
Q_mul_to_int 0
Q_muli_to_int 8061807
Q_primitive_part 10109098
Q_primpart 1167849
Q_remove_denom 1198630
RgXQ_charpoly 12509
RgXQ_inv 111609
RgXQ_ratlift 56
RgX_Rg_mul_i 57883
RgX_disc 273
RgX_disc_aux 3297
RgX_extgcd 434
RgX_extgcd_simple 0
RgX_gcd 10554643
RgX_gcd_simple 8680
RgX_is_irred 28
RgX_is_irred_i 28
RgX_neg_i 19866
RgX_resultant_all 16100
RgX_simpletype 78617
RgX_sturmpart 0
RgX_type 173453
RgX_type_decode 91
RgX_type_is_composite 173012
ZX_content 5971
_domul 1682603
_pol_0 0
c_is_rational 56
c_zero_gcd 28
caract_const 84
centermod 4534715
centermod_i 6150735
centermodii 88359650
code 84
cont_gcd 3046516
cont_gcd_gen 7623
cont_gcd_pol 2230739
cont_gcd_rfrac 864920
content 74438785
deg1_from_roots 38388
divide_conquer_assoc 786623
divide_conquer_prod 298960
eltmul 2115
eltpow 3032
exact_sturm 231
factor 37604
factor0 0
factorback 15792
factorback2 469126
fix_lcm 49
fix_pol 70
gauss_cmp 77
gauss_factor 42
gauss_factor_p 35
gauss_gcd 49
gauss_normal 112
gauss_primpart 42
gauss_primpart_try 70
gbezout 280
gcdext0 280
gcdiq 364233
gcdmonome 7184506
gcdqq 797238
gdivexact 2404337
gen_factorback 470554
ggcd 21653573
ggcd0 1407
ginvmod 2457
glcm 2919
glcm0 2849
gp_factor0 36183
idealfactorback 147
idmul 7
idmulred 0
idpow 98
idpowred 56
inexact 25102573
init_resultant 37828
is_rational 105
isinexactall 6767021
isirreducible 28
mul 1032003
must_negate 11228
newtonpoly 14
nextSousResultant 19866
nffactorback 1281
normalized_mul 170286
normalized_to_RgX 34321
padic_gcd 91
pol_approx0 38717
poldisc0 3024
polresultant0 231
polresultantext 518
polresultantext0 546
polsym 3717
polsym_gen 9527
powi 1500793
primitive_part 1333084
primpart 2555
reduceddiscsmith 14
reductum_lg 57015
resultant2 28
resultant_all 37800
rnfcharpoly 224
roots_from_deg1 609
roots_to_pol 10306
roots_to_pol_r1 24015
s_centermod 0
scal_lcm 2856
scalar_bezout 112
scalar_res 0
sturmpart 154
sturmpart_i 154
subres_step 179815
subresext 0
subresext_i 112155
sylvester_col 196
sylvestermatrix 14
sylvestermatrix_i 42
triv_cont_gcd 679
vec_lcm 0
zero_bezout 63
zero_extgcd 28
zero_gcd 8156705

Generated by: LCOV version 1.9