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 17908-5dc2363) Lines: 1491 1721 86.6 %
Date: 2015-06-30 Functions: 120 130 92.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1142 1586 72.0 %

Function Name Sort by function name Hit count Sort by hit count
Lazard 17934
Lazard2 21616
Q_content 83864731
Q_denom 12480185
Q_div_to_int 3668
Q_divi_to_int 12377993
Q_divmuli_to_int 20085
Q_divq_to_int 160382
Q_gcd 60855712
Q_mul_to_int 0
Q_muli_to_int 9889462
Q_primitive_part 10306562
Q_primpart 1180904
Q_remove_denom 1348987
RgXQ_charpoly 13118
RgXQ_inv 120226
RgXQ_ratlift 56
RgX_Rg_mul_i 65051
RgX_disc 833
RgX_disc_aux 3850
RgX_extgcd 315
RgX_extgcd_simple 0
RgX_gcd 10519009
RgX_gcd_simple 1127
RgX_is_irred 63
RgX_is_irred_i 63
RgX_neg_i 21616
RgX_resultant_all 18004
RgX_simpletype 84215
RgX_sturmpart 0
RgX_type 310305
RgX_type_decode 140
RgX_type_is_composite 308030
ZX_content 14448
_pol_0 0
c_is_rational 56
c_zero_gcd 28
caract_const 119
centermod 4559704
centermod_i 7148603
centermodii 104400805
code 175
cont_gcd 3087502
cont_gcd_gen 9002
cont_gcd_pol 2270104
cont_gcd_rfrac 864906
content 73365163
deg1_from_roots 38591
eltmul 2374
eltpow 3508
exact_sturm 1113
factor 39441
factor0 0
factorback 18620
factorback2 472025
fix_lcm 56
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 474863
gcdmonome 7155844
gcdqq 962919
gdivexact 2871597
gen_factorback 476386
ggcd 21559311
ggcd0 1411
ginvmod 4473
glcm 3017
glcm0 2856
gp_factor0 36929
idealfactorback 868
idmul 140
idmulred 0
idpow 952
idpowred 56
inexact 25054105
init_resultant 40550
is_rational 105
isinexactall 6760042
isirreducible 63
mul 1031241
must_negate 3570
newtonpoly 7
nextSousResultant 21616
nffactorback 1617
normalized_mul 231685
normalized_to_RgX 80155
padic_gcd 91
pol_approx0 2849
poldisc0 3031
polresultant0 238
polresultantext 763
polresultantext0 791
polsym 6244
polsym_gen 21392
powi 1502802
primitive_part 1362860
primpart 2898
reduceddiscsmith 7
reductum_lg 62104
resultant2 21
resultant_all 40529
rnfcharpoly 224
roots_from_deg1 609
roots_to_pol 55440
roots_to_pol_r1 24715
s_centermod 0
scal_lcm 2856
scalar_bezout 112
scalar_res 0
sturmpart 581
sturmpart_i 581
subres_step 204166
subresext 0
subresext_i 121017
sylvester_col 133
sylvestermatrix 7
sylvestermatrix_i 28
triv_cont_gcd 357
vec_lcm 0
zero_bezout 63
zero_extgcd 28
zero_gcd 8167015

Generated by: LCOV version 1.9