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.1 lcov report (development 28676-df828f1c94) Lines: 2408 2615 92.1 %
Date: 2023-08-26 07:54:43 Functions: 231 242 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
qfb_apply_ZM 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 91
gtovecsmallpre 91
serreverse 98
RgX_integ 105
gppadicprec 105
denompol 119
liftint 119
derivnser 189
QpV_to_QV 196
gtocol 196
mod_r 196
trunc0 217
gtocolrev0 273
denominator_v 287
gtovecrev0 287
_quotfs 301
quotfs 301
compo 313
pollead 329
integ 350
vec_padicprec_relative 413
_abs 518
quad_floor 518
quotrem 518
ser2rfrac 532
liftint_shallow 546
centerlift0 707
quot 777
vec_padicprec 826
RgX_derivn 833
lookup 833
_quot 875
gsubstvec 959
divrem 1057
variables_vecsmall 1057
gdiventres 1064
gtovecpost 1064
is_realquad 1099
derivn 1351
mkcoln 1379
sertrunc_copy 1960
ceilr 2066
padicprec_relative 2359
var2_polmod 2933
serdeflate 2961
diffop 3535
init_vectopre 3535
gtovecpre 3591
gtocol0 3626
padicprec 4172
ser_unscale 4193
liftpol 5656
round0 5880
greal 6146
ggrando 6636
degree 6790
var2_rfrac 7035
qf_apply_RgM 7601
gtovecsmall0 7707
numer 8631
gsubstpol 8708
poldeflate 8722
numerator 8925
ser2rfrac_i 9961
var2_aux 9968
geval_gp 10817
subst_polmod 10969
gdeflate 11746
isinexactreal 14336
gdvd 15511
qfeval 16714
gtovecsmall 18928
Itos 18984
mkintn 19526
serequalXk 20951
RgC_RgV_mulrealsym 21273
derivser 24444
integser 25074
liftall 26243
recvar 26579
gimag 29316
gceil 30088
gppoldegree 30727
ser_inv 38472
centerliftii 42518
gvar9 55181
centerlift 60473
floor_safe 62407
uu32toineg 72146
gtovec 101695
poldegree 101993
gtovec0 106014
_sercoef 110908
vecdenom 111307
deriv 114128
denominator 124236
mkvecsmalln 125179
content0 131005
gge 136430
is_realext 176943
gtrunc 186492
denom 225008
gfrac 233640
uu32toi 241492
padic_to_Q 269722
gdiventgs 290859
RgX_deflate_max 294744
RgX_deflate_order 305531
ZX_deflate_max 315204
deg2pol_shallow 317632
roundr_safe 336325
qfbeval 347816
qfnorm0 347879
qfeval0 347935
issmall 349802
isint 468025
qf_apply_ZM 491136
init_qf_apply 498737
RgX_degree 500428
ZX_deflate_order 510081
deg1pol 555674
gnot 582379
lift_shallow 586488
precrealexact 600857
polcoef 727559
ser2pol_i_normalize 740451
subst_higher 749015
gmodulss 774505
ceil_safe 880386
gcvtoi 953665
gtopoly 1040465
gmodulsg 1076573
mkvecn 1102138
isrealappr 1151906
gdivround 1464482
gmodulo 1596558
liftall_shallow 2003211
lift 2142982
_polcoef 2240739
RgX_cxeval 2248321
lift0 2293830
ggt 2359361
gtopolyrev 2434047
ground 2670870
gsubst 2734615
polcoef_i 2936343
poleval 2940714
scalarpol_shallow 3024232
roundr 3143348
_gtopoly 3474512
mkpoln 3688946
modRr_i 4737481
gfloor 5289332
glt 6103983
gdiventsg 6198230
gdivent 6200418
prec0 7072122
gle 7628238
deg1pol_shallow 7729084
numer_i 8990233
ser2pol_i 9975794
denom_i 10364013
simplify 10812160
mulreal 11336419
gprecision 12979846
precCOMPLEX 16662161
scalarpol 16943174
gvar2 20641161
liftpol_shallow 21216918
gmodgs 22027602
round_i 31586175
grndtoi 42108986
gshift 44762075
gmodsg 44990793
gmod 46137498
geq 47184268
gne 60734674
diviiround 62536027
gtrunc2n 91509473
_egal 107918946
_egal_i 107918950
op_ReIm 125146905
gvar 128787409
isinexact 132949203
imag_i 193951939
real_i 226156777
simplify_shallow 527312245
precREAL 596838209
precision 604731433

Generated by: LCOV version 1.14