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
FFT 56
FFT_i 98
FFTinv 56
QX_complex_roots 286888
RgX_gtofp_bit 6976002
RgX_normalize1 35213
X2XP1 1281985
ZX_Uspensky 182185
ZX_Uspensky_equal 28
ZX_Uspensky_equal_yes 14
ZX_Uspensky_no 21
ZX_deg1root 14568
ZX_graeffe 5313
ZX_realroots_irred 47339
ZX_rescale2prim 418041
ZX_sturm 1414
ZX_sturm_i 116388
ZX_sturm_irred 114974
ZX_sturmpart 3068
ZX_to_ZiX 16390592
ZiX_sqr 98472644
_gen_nored 11073419
_gen_one 14301026
_gen_zero 321273
_intervalcmp 0
_mp_add 24531815
_mp_cmul 34510246
_mp_mul 4352819
_mp_sqr 6255492
_mp_sub 0
_sqrtnr 22103
a_posteriori_errors 526847
abs_update 7962519
abs_update_r 773716
all_roots 526040
append_clone 1591998
bkeval_single_power 5168628
check_ab 53611
checkbound 105598
checkvalidpol 266169
clean_roots 526081
cleanroots 231313
cmp_complex_appr 2212845
conformal_basecase 1396135
conformal_mapping 465342
conformal_pol 1396254
dblexp 6509485
dbllog2 298677826
dft 499330
dual_modulus 1006731
eval_rel_pol 13055416
fft 14052206
fft2 7462
findpower 40727472
fix_roots 526847
fix_roots1 391808
fujiwara_bound 1118777
fujiwara_bound_real 269381
graeffe 49226020
homothetie 1600150
homothetie2n 9894495
homothetie_gauss 36296385
ind_maxlog2 897655
initdft 990431
isexactpol 239198
isexactscalar 930550
isreal 956443
isvalidcoeff 1221569
logmax_modulus 4425721
logmin_modulus 1605692
logmodulus 602578
logpre_modulus 602580
logradius 491098
lower_bound 40727698
mydbllog2i 222985306
mydbllog2r 53449778
mydbllogr 9494916
mygprec 63258483
mygprec_absolute 4262580
mygprec_special 526857
mygprecrc 213287500
mygprecrc_special 2143652
myshiftic 135028289
myshiftrc 35259647
newton_polygon 5469036
optimize_split 491103
parameters 491101
pol_to_gaussint 17481003
polgraeffe 14
polmod_to_embed 84
polrootsbound 26964
polrootsbound_i 26957
polsolve 164747
quicktofp 4142830
realroots 50543
refine_F 499326
refine_H 2442793
root_error 1884769
roots 7913
roots_aux 239226
roots_com 239198
rootsdeg0 42
scalepol 4265288
scalepol2n 0
sol_ok 3399
solve_exact_pol 230942
split_0 491421
split_0_1 465664
split_0_2 465664
split_1 465341
split_2 491100
split_complete 1509693
split_fromU 491103
split_pols 164744
splitcauchy 164755
splitpoleval 5168432
tocomplex 1189921
update_radius 491101
usp 229291

Generated by: LCOV version 1.16