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.18.0 lcov report (development 29804-254f602fce) Lines: 1468 1530 95.9 %
Date: 2024-12-18 09:08:59 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
sol_ok 3350
ZX_sturm 3736
ZX_graeffe 5369
fft2 7462
roots 8018
ZX_deg1root 15138
_sqrtnr 22596
polrootsbound_i 27195
polrootsbound 27202
RgX_normalize1 35451
ZX_realroots_irred 48125
realroots 50613
ZX_sturm_irred 115950
ZX_sturm_i 119686
polsolve 165285
split_pols 165286
splitcauchy 165292
solve_exact_pol 231040
cleanroots 231306
isexactpol 239296
roots_com 239296
roots_aux 239324
checkvalidpol 266505
QX_complex_roots 289189
_gen_zero 322087
fix_roots1 393219
conformal_mapping 466815
split_1 466818
split_0_1 467138
split_0_2 467138
logradius 492663
update_radius 492668
parameters 492669
split_2 492671
optimize_split 492673
split_fromU 492673
split_0 492994
refine_F 500901
dft 500907
all_roots 528443
clean_roots 528488
a_posteriori_errors 529222
fix_roots 529223
mygprec_special 529229
logpre_modulus 604806
logmodulus 604811
abs_update_r 776173
ZX_sturmpart 875373
ind_maxlog2 900859
check_ab 925986
isexactscalar 930942
usp 939225
isreal 959491
initdft 993578
dual_modulus 1009939
ZX_Uspensky 1057566
fujiwara_bound_real 1147479
tocomplex 1196984
isvalidcoeff 1224421
conformal_basecase 1400571
conformal_pol 1400691
split_complete 1515210
append_clone 1598461
homothetie 1605621
logmin_modulus 1611321
checkbound 1849102
root_error 1892874
ZX_rescale2prim 1934983
fujiwara_bound 2002513
mygprecrc_special 2152471
cmp_complex_appr 2222579
refine_H 2452199
scalepol 4278836
mygprec_absolute 4284656
_mp_mul 4353986
logmax_modulus 4440807
bkeval_single_power 5183319
splitpoleval 5183471
X2XP1 5201911
newton_polygon 5489266
_mp_sqr 6264619
quicktofp 6439073
dblexp 6532166
RgX_gtofp_bit 7003067
abs_update 7988759
mydbllogr 9526568
homothetie2n 9929751
_gen_nored 11096055
eval_rel_pol 13102292
fft 14114560
_gen_one 14337928
ZX_to_ZiX 16459662
pol_to_gaussint 17543066
_mp_add 24543673
_mp_cmul 34543379
myshiftrc 35405508
homothetie_gauss 36413272
lower_bound 40862406
findpower 40862707
graeffe 49388695
mydbllog2r 55810054
mygprec 63485526
ZiX_sqr 98790570
myshiftic 135461363
mygprecrc 214127278
mydbllog2i 223849492
dbllog2 299691593

Generated by: LCOV version 1.16