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.16.2 lcov report (development 29465-f396510193) Lines: 1480 1543 95.9 %
Date: 2024-07-25 09:03:53 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 47339
realroots 50543
check_ab 53611
checkbound 105598
ZX_sturm_irred 114974
ZX_sturm_i 116388
split_pols 164744
polsolve 164747
splitcauchy 164755
ZX_Uspensky 182185
usp 229291
solve_exact_pol 230942
cleanroots 231313
isexactpol 239198
roots_com 239198
roots_aux 239226
checkvalidpol 266169
fujiwara_bound_real 269381
QX_complex_roots 286888
_gen_zero 321273
fix_roots1 391808
ZX_rescale2prim 418041
split_1 465341
conformal_mapping 465342
split_0_1 465664
split_0_2 465664
logradius 491098
split_2 491100
parameters 491101
update_radius 491101
optimize_split 491103
split_fromU 491103
split_0 491421
refine_F 499326
dft 499330
all_roots 526040
clean_roots 526081
a_posteriori_errors 526847
fix_roots 526847
mygprec_special 526857
logmodulus 602578
logpre_modulus 602580
abs_update_r 773716
ind_maxlog2 897655
isexactscalar 930550
isreal 956443
initdft 990431
dual_modulus 1006731
fujiwara_bound 1118777
tocomplex 1189921
isvalidcoeff 1221569
X2XP1 1281985
conformal_basecase 1396135
conformal_pol 1396254
split_complete 1509693
append_clone 1591998
homothetie 1600150
logmin_modulus 1605692
root_error 1884769
mygprecrc_special 2143652
cmp_complex_appr 2212845
refine_H 2442793
quicktofp 4142830
mygprec_absolute 4262580
scalepol 4265288
_mp_mul 4352819
logmax_modulus 4425721
splitpoleval 5168432
bkeval_single_power 5168628
newton_polygon 5469036
_mp_sqr 6255492
dblexp 6509485
RgX_gtofp_bit 6976002
abs_update 7962519
mydbllogr 9494916
homothetie2n 9894495
_gen_nored 11073419
eval_rel_pol 13055416
fft 14052206
_gen_one 14301026
ZX_to_ZiX 16390592
pol_to_gaussint 17481003
_mp_add 24531815
_mp_cmul 34510246
myshiftrc 35259647
homothetie_gauss 36296385
findpower 40727472
lower_bound 40727698
graeffe 49226020
mydbllog2r 53449778
mygprec 63258483
ZiX_sqr 98472644
myshiftic 135028289
mygprecrc 213287500
mydbllog2i 222985306
dbllog2 298677826

Generated by: LCOV version 1.16