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 - gen3.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.16.2 lcov report (development 29465-f396510193) Lines: 2426 2629 92.3 %
Date: 2024-07-25 09:03:53 Functions: 231 242 95.5 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Itos 19005
QpV_to_QV 196
RgC_RgV_mulrealsym 21315
RgM_mulreal 0
RgXY_cxevalx 63
RgX_cxeval 2398256
RgX_deflate_max 530772
RgX_deflate_order 852715
RgX_degree 503768
RgX_derivn 833
RgX_integ 105
ZX_deflate_max 316865
ZX_deflate_order 512353
_abs 518
_egal 108043677
_egal_i 108043677
_gtopoly 3469538
_polcoef 2253235
_quot 875
_quotfi 7
_quotfs 301
_quotqs 28
_quotri 7
_quotrs 28
_quotsf 35
_quotsq 70
_quotsr 70
_rfraccoef 21
_sercoef 111902
ceil_safe 1041819
ceilr 2454
centerlift 60473
centerlift0 707
centerliftii 42518
compo 327
constmat 14
content0 131005
deg1pol 559961
deg1pol_shallow 8516596
deg2pol_shallow 319064
degree 6790
denom 225024
denom_i 10349480
denominator 124264
denominator_v 287
denompol 119
deriv 114128
derivn 1351
derivnser 189
derivser 25410
diffop 3535
diffop0 42
diviiround 63195297
divrem 1057
err_intformal 35
floor_safe 61927
gceil 235223
gcvtoi 1115232
gdeflate 14553
gdivent 6200418
gdiventgs 292780
gdiventres 1064
gdiventsg 6198230
gdivmod 0
gdivround 1465558
gdvd 15534
geq 47185636
geval 0
geval_gp 11020
gfloor 5353735
gfrac 426311
gge 248429
ggrando 6979
ggt 2374836
gimag 29344
gle 7628237
glt 6328186
gmod 46136638
gmodgs 22028249
gmodsg 44990237
gmodulo 1600076
gmodulsg 1077066
gmodulss 774631
gne 60858041
gnot 603995
gppadicprec 105
gppoldegree 30923
gprecision 14441491
gpserprec 42
greal 7014
grndtoi 89051546
ground 2797654
gshift 47665892
gsubst 2726355
gsubst_v 84
gsubstpol 8708
gsubstvec 959
gtocol 210
gtocol0 3668
gtocolrev 0
gtocolrev0 294
gtopoly 1035489
gtopolyrev 2434047
gtovec 101772
gtovec0 106133
gtovecpost 1092
gtovecpre 3619
gtovecrev 0
gtovecrev0 308
gtovecsmall 18970
gtovecsmall0 7728
gtovecsmallpost 98
gtovecsmallpre 98
gtrunc 597616
gtrunc2n 116716388
gvar 128660490
gvar2 20639976
gvar9 55160
hqfeval 0
imag_i 297093737
init_qf_apply 500579
init_vectopre 3563
integ 350
integ_act 14
integser 26040
is_realext 177343
is_realquad 1099
iscomplex 0
isinexact 132117816
isinexactreal 14357
isint 445876
isrationalzeroscalar 0
isrealappr 1859997
issmall 326463
lift 2156104
lift0 2306987
lift_shallow 592911
liftall 26243
liftall_shallow 2003435
liftint 119
liftint_shallow 546
liftpol 5656
liftpol_shallow 21236064
listdeflate 21
lookup 833
mkcoln 1379
mkintn 24076
mkpoln 5556225
mkvecn 1138108
mkvecsmalln 126187
modRr_i 4846616
modRr_safe 0
mod_r 196
modrs 14
modsf 35
modsr 35
mulreal 15684607
numer 8631
numer_i 8977687
numerator 8925
op_ReIm 202101105
padic_to_Q 689400
padic_to_Q_shallow 14
padicprec 4172
padicprec_relative 2359
polcoef 727580
polcoef_i 2953998
poldeflate 8722
poldegree 102268
poleval 2907065
pollead 1211
prec0 10084767
precCOMPLEX 22844600
precREAL 934741543
precision 947249476
precrealexact 1346595
qf_RgM_apply 7570
qf_ZM_apply 493009
qfb_ZM_apply 61920
qfbeval 347816
qfbevalb 7
qfbil 0
qfeval 16848
qfeval0 348068
qfevalb 21
qfnorm 0
qfnorm0 348012
quad_floor 518
quot 777
quotfi 7
quotfs 301
quotqs 14
quotrem 518
quotri 7
quotrs 14
quotsf 35
quotsq 35
quotsr 35
real_i 318960887
recvar 26579
rfrac_deriv 56
rfrac_derivn 42
round0 6027
round_i 53171790
roundr 3029526
roundr_safe 272620
scalarmat2 56
scalarpol 16901992
scalarpol_shallow 3673367
ser2pol_i 10123592
ser2pol_i_normalize 756803
ser2rfrac 539
ser2rfrac_i 10801
ser_inv 45542
ser_unscale 4193
serdeflate 5768
serequalXk 21161
serprec 70
serreverse 98
sertrunc 70
sertrunc_copy 1960
simplify 10810090
simplify_shallow 527279256
subst_higher 751163
subst_polmod 10969
swapvar_act 28
tayl 21
tayl_act 14
trunc0 217
uu32toi 243462
uu32toineg 72146
var2_aux 9968
var2_polmod 2933
var2_rfrac 7035
variables_vec 42
variables_vecsmall 1057
vdeflate 63
vec_padicprec 826
vec_padicprec_relative 413
vec_serprec 14
vecdenom 111541
vecdenompol 14

Generated by: LCOV version 1.16