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

Generated by: LCOV version 1.16