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 to exceed 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.14.0 lcov report (development 27920-e0b3650d81) Lines: 2167 2397 90.4 %
Date: 2022-08-07 07:33:29 Functions: 193 203 95.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Q_mul_to_int 0
RgXQ_sqr_FpXQXQ 0
RgX_chinese_coprime 0
RgX_extgcd_simple 0
RgX_gcd_simple 0
RgX_halfgcd_FpXQX 0
pol_approx0 0
s_centermod 0
scalar_res 0
subresext 0
RgXQ_inv_FpXQXQ 7
RgX_extgcd_FpXQX 7
RgX_gcd_FpXQX 7
RgX_halfgcd_FFX 7
reduceddiscsmith 7
sylvestermatrix 7
FqV_factorback 14
RgXQ_sqr_FpXQ 14
RgX_halfgcd_FpX 14
RgX_halfgcd_i 14
RgX_resultant_FpX 14
RgX_resultant_FpXQX 21
resultant2 21
RgX_disc_FpXQX 28
newtonpoly 28
zero_extgcd 28
RgX_halfgcd 35
RgX_halfgcd_fast 35
RgX_disc_FpX 42
gauss_factor_p 42
ghalfgcd 42
gauss_factor 49
gauss_primpart 49
RgX_extgcd_FpX 56
gc_gcdext 63
zero_bezout 63
RgV_type 70
RgXQ_ratlift 70
gauss_primpart_try 70
vecprod 70
gauss_cmp 91
random_FpX_monic 112
scalar_bezout 112
RgX_fix_quad 126
RgX_sturmpart 140
caract_const 140
RgV_type2 203
rnfcharpoly 224
FE_matconcat 245
RgXY_factor 245
RgXY_squff 245
RgXY_factor_squarefree 273
RgX_Rg_type 294
RgX_disc_i 308
fix_pol 329
RgX_Frobenius_deflate 343
gbezout 350
gcdext0 350
RgXQ_mul_FpXQXQ 385
gen_cmp_RgXY 385
gauss_gcd 399
ok_bloc 434
gauss_normal 469
polresultant0 476
RgXQ_inv_i 904
R_to_Q_down 1169
R_to_Q_up 1169
sturmpart 1169
sturmpart_i 1169
c_zero_gcd 1267
padic_gcd 1414
RgX_gcd_QXQX 1428
polresultantext 1463
polresultantext0 1491
primpart 2233
RgX_gcd_ZXQX 2268
subresext_i 2395
FlxqV_factorback 2467
cont_gcd_gen 2506
triv_cont_gcd 2555
c_is_rational 2590
glcm0 2877
glcm 3171
ZV_lcm 3470
fix_lcm 3568
RgX_extgcd_fast 4221
RgX_extgcd 4256
poldisc0 4670
Q_div_to_int 4746
must_negate 6167
RgX_liftred 7392
RgX_cmbf 9121
Q_factor_limit 9764
RgX_is_irred 11165
RgX_is_irred_i 11165
polisirreducible 11165
subres_step 11439
RgXQ_inv_FpXQ 12054
ZX_content 13146
RgX_factor 13629
row_Q_primpart 16128
RgXQ_inv 19709
RgXQ_inv_fast 19709
Q_factor 20817
ginvmod 27251
RgX_rescale_to_int 37387
isinexactall 38367
Z_content_v 43169
factor0 59326
factor 62112
factor_domain 62791
roots_from_deg1 63847
RgX_type_decode 89456
Flv_factorback 99143
Lazard2 99198
RgX_neg_i 99198
nextSousResultant 99198
inexact 100919
RgXQ_sqr 104391
RgXQ_sqr_fast 104391
polsym 110567
vec_Q_primpart 110801
RgXQ_charpoly 116850
RgX_disc 122900
RgX_disc_fast 122900
polsym_gen 127983
RgX_resultant_all 128539
Lazard 129117
deg1_from_roots 134185
RgX_gcd_FpX 198912
Fppow 223569
reductum_lg 256514
roots_to_pol_r1 259622
RgX_Rg_mul_i 259834
RgXQ_mul_FpXQ 274288
RgX_resultant_sylvester 278334
RgX_sylvestermatrix 278334
syl_RgM 278341
Z_content 280049
Q_content 308349
RgM_type 316443
resultant 399579
resultant_fast 399579
init_resultant 399601
syl_RgC 531622
RgM_rescale_to_int 561797
roots_to_pol 709361
RgXQ_mul 839217
RgX_type3 839217
RgXQ_mul_fast 839218
cont_gcd_rfrac 864932
normalized_to_RgX 968939
RgX_type 1253145
factorback 1253710
primitive_part 1700959
gcdmonome 1706468
normalized_mul 1706539
Q_denom 2160911
cont_gcd_pol 2786266
cont_gcd_pol_i 2786273
cont_gcd 2799692
RgM_type2 3786737
Q_primpart 5006476
ggcd0 5203504
rescale_init 5866103
FpV_factorback 7113107
zero_gcd 8244868
Q_divq_to_int 8286099
centermod 9069534
RgX_type_is_composite 9112523
zero_gcd2 9357625
Q_divmuli_to_int 9527976
gcdiq 11193710
RgX_gcd 11324206
RgX_gcd_fast 11324206
centermod_i 12649472
Rg_type 16489401
gdivexact 20020638
factorback2 24580655
Fpmul 25220396
gcdqq 25522606
Q_denom_v 31738423
gen_factorback 32081020
ggcd 32492582
Q_remove_denom 35906645
Q_divi_to_int 38127931
RgM_RgC_type 41587835
Q_primitive_part 48453527
RgM_settype 49477519
mul 54042311
Q_content_v 71551199
content 74074681
powi 78581431
centermodii 85066621
RgX_type2 91720134
Q_muli_to_int 106074952
choosetype 155393614
Q_denom_safe 161609248
RgX_settype 229475068
Q_gcd 238814914
RgC_settype 243043064
Q_content_safe 359139991
settype 2139022921

Generated by: LCOV version 1.13