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 - rootpol.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.17.0 lcov report (development 29484-15b3466a01) Lines: 1480 1543 95.9 %
Date: 2024-09-01 09:02:42 Functions: 116 119 97.5 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FFT 56
FFT_i 98
FFTinv 56
QX_complex_roots 286890
RgX_gtofp_bit 6976217
RgX_normalize1 35213
X2XP1 1281988
ZX_Uspensky 182187
ZX_Uspensky_equal 28
ZX_Uspensky_equal_yes 14
ZX_Uspensky_no 21
ZX_deg1root 14568
ZX_graeffe 5313
ZX_realroots_irred 47344
ZX_rescale2prim 418037
ZX_sturm 1414
ZX_sturm_i 116390
ZX_sturm_irred 114976
ZX_sturmpart 3068
ZX_to_ZiX 16384657
ZiX_sqr 98451222
_gen_nored 11068260
_gen_one 14297526
_gen_zero 321236
_intervalcmp 0
_mp_add 24529481
_mp_cmul 34499818
_mp_mul 4352666
_mp_sqr 6255214
_mp_sub 0
_sqrtnr 22103
a_posteriori_errors 526855
abs_update 7961938
abs_update_r 773755
all_roots 526049
append_clone 1592020
bkeval_single_power 5167706
check_ab 53611
checkbound 105598
checkvalidpol 266169
clean_roots 526085
cleanroots 231313
cmp_complex_appr 2212929
conformal_basecase 1396152
conformal_mapping 465345
conformal_pol 1396270
dblexp 6509517
dbllog2 298574578
dft 499334
dual_modulus 1006742
eval_rel_pol 13055569
fft 14052045
fft2 7462
findpower 40722725
fix_roots 526858
fix_roots1 391818
fujiwara_bound 1118800
fujiwara_bound_real 269385
graeffe 49217026
homothetie 1600180
homothetie2n 9894529
homothetie_gauss 36289494
ind_maxlog2 897653
initdft 990436
isexactpol 239198
isexactscalar 930550
isreal 956447
isvalidcoeff 1221569
logmax_modulus 4425705
logmin_modulus 1605682
logmodulus 602599
logpre_modulus 602598
logradius 491099
lower_bound 40722568
mydbllog2i 222922804
mydbllog2r 53447911
mydbllogr 9494467
mygprec 63255131
mygprec_absolute 4262583
mygprec_special 526862
mygprecrc 213265964
mygprecrc_special 2143688
myshiftic 134951480
myshiftrc 35259838
newton_polygon 5469183
optimize_split 491106
parameters 491102
pol_to_gaussint 17481278
polgraeffe 14
polmod_to_embed 84
polrootsbound 26964
polrootsbound_i 26957
polsolve 164745
quicktofp 4142990
realroots 50543
refine_F 499327
refine_H 2442799
root_error 1884791
roots 7913
roots_aux 239226
roots_com 239198
rootsdeg0 42
scalepol 4265312
scalepol2n 0
sol_ok 3399
solve_exact_pol 230942
split_0 491427
split_0_1 465666
split_0_2 465666
split_1 465344
split_2 491106
split_complete 1509715
split_fromU 491105
split_pols 164751
splitcauchy 164756
splitpoleval 5167730
tocomplex 1189940
update_radius 491105
usp 229302

Generated by: LCOV version 1.16