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 17403-69c3b04) Lines: 1507 1741 86.6 %
Date: 2015-01-28 Functions: 123 133 92.5 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1153 1599 72.1 %

Function Name Sort by function name Hit count Sort by hit count
Lazard 16821
Lazard2 20503
Q_content 83547222
Q_denom 11489690
Q_div_to_int 3668
Q_divi_to_int 12335263
Q_divmuli_to_int 20085
Q_divq_to_int 159164
Q_gcd 60574328
Q_mul_to_int 0
Q_muli_to_int 9120965
Q_primitive_part 10293130
Q_primpart 1179218
Q_remove_denom 1333318
RgXQ_charpoly 12628
RgXQ_inv 119463
RgXQ_ratlift 56
RgX_Rg_mul_i 59675
RgX_disc 658
RgX_disc_aux 3675
RgX_extgcd 315
RgX_extgcd_simple 0
RgX_gcd 10514032
RgX_gcd_simple 1127
RgX_is_irred 63
RgX_is_irred_i 63
RgX_neg_i 20503
RgX_resultant_all 17164
RgX_simpletype 82472
RgX_sturmpart 0
RgX_type 302157
RgX_type_decode 133
RgX_type_is_composite 299049
ZX_content 5852
_domul 1760446
_pol_0 0
c_is_rational 56
c_zero_gcd 28
caract_const 84
centermod 4561951
centermod_i 6517275
centermodii 96323535
code 168
cont_gcd 3079515
cont_gcd_gen 9177
cont_gcd_pol 2261942
cont_gcd_rfrac 864920
content 73348503
deg1_from_roots 38591
divide_conquer_assoc 933130
divide_conquer_prod 314868
eltmul 2367
eltpow 3508
exact_sturm 875
factor 38325
factor0 0
factorback 17150
factorback2 470484
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 465021
gcdmonome 7152491
gcdqq 944313
gdivexact 2747912
gen_factorback 474537
ggcd 21526022
ggcd0 1407
ginvmod 4459
glcm 2912
glcm0 2849
gp_factor0 36183
idealfactorback 728
idmul 119
idmulred 0
idpow 791
idpowred 56
inexact 25011482
init_resultant 39689
is_rational 105
isinexactall 6749556
isirreducible 63
mul 1029777
must_negate 3619
newtonpoly 7
nextSousResultant 20503
nffactorback 1617
normalized_mul 187962
normalized_to_RgX 36748
padic_gcd 91
pol_approx0 2849
poldisc0 3024
polresultant0 238
polresultantext 504
polresultantext0 532
polsym 5278
polsym_gen 20251
powi 1499932
primitive_part 1359451
primpart 2828
reduceddiscsmith 7
reductum_lg 58807
resultant2 21
resultant_all 39668
rnfcharpoly 224
roots_from_deg1 609
roots_to_pol 12201
roots_to_pol_r1 24547
s_centermod 0
scal_lcm 2856
scalar_bezout 112
scalar_res 0
sturmpart 462
sturmpart_i 462
subres_step 202556
subresext 0
subresext_i 119995
sylvester_col 133
sylvestermatrix 7
sylvestermatrix_i 28
triv_cont_gcd 357
vec_lcm 0
zero_bezout 63
zero_extgcd 28
zero_gcd 8160953

Generated by: LCOV version 1.9