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 29712-7c8a932571) Lines: 1480 1543 95.9 %
Date: 2024-11-15 09:08:45 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 289179
RgX_gtofp_bit 7003226
RgX_normalize1 35452
X2XP1 5201737
ZX_Uspensky 1057392
ZX_Uspensky_equal 28
ZX_Uspensky_equal_yes 14
ZX_Uspensky_no 21
ZX_deg1root 15127
ZX_graeffe 5369
ZX_realroots_irred 48114
ZX_rescale2prim 1934913
ZX_sturm 3736
ZX_sturm_i 119672
ZX_sturm_irred 115936
ZX_sturmpart 875207
ZX_to_ZiX 16458491
ZiX_sqr 98803374
_gen_nored 11095191
_gen_one 14339597
_gen_zero 322106
_intervalcmp 0
_mp_add 24544678
_mp_cmul 34541422
_mp_mul 4353924
_mp_sqr 6264745
_mp_sub 0
_sqrtnr 22592
a_posteriori_errors 529216
abs_update 7988857
abs_update_r 776222
all_roots 528437
append_clone 1598469
bkeval_single_power 5184024
check_ab 925820
checkbound 1848770
checkvalidpol 266513
clean_roots 528480
cleanroots 231313
cmp_complex_appr 2222606
conformal_basecase 1400611
conformal_mapping 466833
conformal_pol 1400731
dblexp 6532378
dbllog2 299640305
dft 500924
dual_modulus 1009961
eval_rel_pol 13102759
fft 14115076
fft2 7462
findpower 40866257
fix_roots 529222
fix_roots1 393230
fujiwara_bound 2002310
fujiwara_bound_real 1147315
graeffe 49391513
homothetie 1605662
homothetie2n 9929968
homothetie_gauss 36416784
ind_maxlog2 900868
initdft 993609
isexactpol 239303
isexactscalar 930970
isreal 959517
isvalidcoeff 1224452
logmax_modulus 4440930
logmin_modulus 1611358
logmodulus 604826
logpre_modulus 604829
logradius 492683
lower_bound 40865312
mydbllog2i 223869210
mydbllog2r 55739658
mydbllogr 9526435
mygprec 63487366
mygprec_absolute 4284615
mygprec_special 529223
mygprecrc 214131534
mygprecrc_special 2152493
myshiftic 135476959
myshiftrc 35406737
newton_polygon 5489440
optimize_split 492686
parameters 492684
pol_to_gaussint 17543661
polgraeffe 14
polmod_to_embed 84
polrootsbound 27203
polrootsbound_i 27196
polsolve 165279
quicktofp 6438782
realroots 50613
refine_F 500924
refine_H 2452246
root_error 1892865
roots 8018
roots_aux 239331
roots_com 239303
rootsdeg0 42
scalepol 4278943
scalepol2n 0
sol_ok 3350
solve_exact_pol 231047
split_0 493009
split_0_1 467155
split_0_2 467156
split_1 466831
split_2 492686
split_complete 1515230
split_fromU 492686
split_pols 165286
splitcauchy 165294
splitpoleval 5183924
tocomplex 1196972
update_radius 492683
usp 939141

Generated by: LCOV version 1.16