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.1 lcov report (development 28880-3b5364847c) Lines: 1480 1543 95.9 %
Date: 2023-12-01 07:53:15 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 35
FFT 56
FFTinv 56
polmod_to_embed 84
FFT_i 98
ZX_sturm 1414
ZX_sturmpart 3060
sol_ok 3399
ZX_graeffe 5306
fft2 7462
roots 7983
solve_exact_pol 11760
cleanroots 11879
ZX_deg1root 14416
isexactpol 19834
roots_com 19834
roots_aux 19862
_sqrtnr 22217
polrootsbound_i 28523
polrootsbound 28530
RgX_normalize1 36597
ZX_realroots_irred 47450
checkvalidpol 48371
realroots 50529
check_ab 53589
isexactscalar 58331
checkbound 105568
ZX_sturm_irred 114536
ZX_sturm_i 115950
polsolve 164899
splitcauchy 164903
split_pols 164904
fix_roots1 181634
ZX_Uspensky 182109
usp 229487
conformal_mapping 259230
split_1 259233
split_0_1 259368
split_0_2 259368
fujiwara_bound_real 269207
QX_complex_roots 274214
logradius 279973
parameters 279973
split_2 279975
optimize_split 279976
split_fromU 279976
update_radius 279976
split_0 280110
_gen_zero 286285
refine_F 287783
dft 287785
all_roots 293027
fix_roots 293803
mygprec_special 293805
a_posteriori_errors 293806
clean_roots 294052
abs_update_r 365693
isvalidcoeff 374424
logmodulus 393657
logpre_modulus 393657
ZX_rescale2prim 415555
ind_maxlog2 490812
isreal 539207
initdft 567759
dual_modulus 584908
conformal_basecase 777812
conformal_pol 777939
fujiwara_bound 852317
split_complete 854027
tocomplex 921343
logmin_modulus 925354
append_clone 942678
homothetie 970376
root_error 1188192
mygprecrc_special 1261291
X2XP1 1276704
refine_H 1414808
cmp_complex_appr 1612911
scalepol 2395217
logmax_modulus 2574824
mygprec_absolute 3019279
quicktofp 3205242
newton_polygon 3598669
dblexp 4015514
_mp_mul 4119498
RgX_gtofp_bit 4627355
splitpoleval 4910611
bkeval_single_power 4910678
_mp_sqr 5987229
abs_update 6148253
homothetie2n 6173144
mydbllogr 7065212
eval_rel_pol 8383502
_gen_nored 10518974
pol_to_gaussint 10958326
fft 12027575
_gen_one 13651955
ZX_to_ZiX 15807948
homothetie_gauss 21278801
_mp_add 23015394
findpower 23856076
lower_bound 23858306
myshiftrc 23865785
graeffe 29555980
_mp_cmul 32512925
mygprec 38939119
mydbllog2r 40695982
ZiX_sqr 59109898
myshiftic 91222006
mydbllog2i 153482374
mygprecrc 162862525
dbllog2 217003840

Generated by: LCOV version 1.14