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.17.0 lcov report (development 29536-db03280b45) Lines: 2430 2633 92.3 %
Date: 2024-09-17 09:03:02 Functions: 232 243 95.5 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
RgM_mulreal 0
gdivmod 0
geval 0
gtocolrev 0
gtovecrev 0
hqfeval 0
iscomplex 0
isrationalzeroscalar 0
modRr_safe 0
qfbil 0
qfnorm 0
_quotfi 7
_quotri 7
qfbevalb 7
quotfi 7
quotri 7
constmat 14
integ_act 14
modrs 14
padic_to_Q_shallow 14
quotqs 14
quotrs 14
tayl_act 14
vec_serprec 14
vecdenompol 14
_rfraccoef 21
listdeflate 21
qfevalb 21
tayl 21
_quotqs 28
_quotrs 28
swapvar_act 28
_quotsf 35
err_intformal 35
modsf 35
modsr 35
quotsf 35
quotsq 35
quotsr 35
diffop0 42
gpserprec 42
rfrac_derivn 42
variables_vec 42
rfrac_deriv 56
scalarmat2 56
RgXY_cxevalx 63
vdeflate 63
_quotsq 70
_quotsr 70
serprec 70
sertrunc 70
gsubst_v 84
gtovecsmallpost 98
gtovecsmallpre 98
serreverse 98
RgX_integ 105
gppadicprec 105
denompol 119
liftint 119
derivnser 189
QpV_to_QV 196
mod_r 196
gtocol 210
trunc0 217
denominator_v 287
gtocolrev0 294
_quotfs 301
quotfs 301
gtovecrev0 308
compo 327
integ 350
vec_padicprec_relative 413
_abs 518
quad_floor 518
quotrem 518
ser2rfrac 539
liftint_shallow 546
subst_polmod 553
centerlift0 707
quot 777
vec_padicprec 826
RgX_derivn 833
lookup 833
_quot 875
gsubstvec 966
divrem 1057
variables_vecsmall 1057
gdiventres 1064
gtovecpost 1092
is_realquad 1099
pollead 1211
derivn 1351
safe_polmod 1358
mkcoln 1379
sertrunc_copy 1960
padicprec_relative 2359
ceilr 2454
var2_polmod 2933
diffop 3535
init_vectopre 3563
gtovecpre 3619
gtocol0 3668
padicprec 4172
ser_unscale 4193
liftpol 5656
serdeflate 5768
round0 6027
degree 6790
ggrando 6979
greal 7014
var2_rfrac 7035
qf_RgM_apply 7558
gtovecsmall0 7728
numer 8631
gsubstpol 8708
poldeflate 8722
numerator 8925
var2_aux 9968
ser2rfrac_i 10801
geval_gp 11020
isinexactreal 14357
gdeflate 14553
gdvd 15618
qfeval 16848
gtovecsmall 18970
Itos 19005
serequalXk 21161
RgC_RgV_mulrealsym 21315
mkintn 24076
derivser 25410
integser 26047
liftall 26243
recvar 26579
gimag 29344
gppoldegree 30923
centerliftii 42518
ser_inv 45542
gvar9 55160
centerlift 60473
qfb_ZM_apply 61920
floor_safe 71223
uu32toineg 72146
gtovec 101772
poldegree 102296
gtovec0 106133
vecdenom 111541
_sercoef 111902
deriv 114128
denominator 124264
mkvecsmalln 126188
content0 131005
is_realext 177745
denom 225024
gceil 235222
uu32toi 243465
gge 248429
roundr_safe 284759
gdiventgs 297123
ZX_deflate_max 317445
deg2pol_shallow 319157
issmall 326463
qfbeval 347816
qfnorm0 348012
qfeval0 348068
gfrac 426311
isint 445876
qf_ZM_apply 493009
init_qf_apply 500567
RgX_degree 504061
ZX_deflate_order 513043
RgX_deflate_max 531415
deg1pol 559960
lift_shallow 592974
gtrunc 597616
gnot 603995
padic_to_Q 689393
subst_higher 701463
polcoef 727580
ser2pol_i_normalize 756803
gmodulss 774645
RgX_deflate_order 853616
gtopoly 1035185
ceil_safe 1042032
gmodulsg 1073304
gcvtoi 1124795
mkvecn 1138194
precrealexact 1346573
gdivround 1466678
gmodulo 1589662
isrealappr 1861611
liftall_shallow 2003435
lift 2156324
_polcoef 2255187
lift0 2307207
ggt 2374836
RgX_cxeval 2400090
gtopolyrev 2434047
gsubst 2632303
ground 2798247
poleval 2874814
polcoef_i 2956054
roundr 3044141
_gtopoly 3469232
scalarpol_shallow 3672467
modRr_i 4873662
gfloor 5353745
mkpoln 5552031
gdiventsg 6198230
gdivent 6200418
glt 6328186
gle 7628235
deg1pol_shallow 8510668
numer_i 8977694
prec0 9486060
ser2pol_i 10123592
denom_i 10349508
simplify 10810347
gprecision 14446861
mulreal 15685758
scalarpol 16883627
gvar2 20639976
liftpol_shallow 21496228
gmodgs 22028249
precCOMPLEX 22937439
gmodsg 44990237
gmod 46122827
geq 47185631
gshift 47682305
round_i 51395521
gne 60858041
diviiround 63354357
grndtoi 87270500
_egal_i 108043670
_egal 108043671
gtrunc2n 116792656
gvar 128729190
isinexact 132140048
op_ReIm 202395369
imag_i 297350536
real_i 319579296
simplify_shallow 527028121
precREAL 932249145
precision 944849538

Generated by: LCOV version 1.16