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 29115-f22e516b23) Lines: 2408 2615 92.1 %
Date: 2024-04-18 08:07:12 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
rfrac_derivn 42
variables_vec 42
rfrac_deriv 56
scalarmat2 56
RgXY_cxevalx 63
vdeflate 63
_quotsq 70
_quotsr 70
sertrunc 70
gsubst_v 84
gtovecsmallpost 91
gtovecsmallpre 91
serreverse 98
RgX_integ 105
gppadicprec 105
serprec 112
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 539
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 2111
padicprec_relative 2359
var2_polmod 2933
diffop 3535
init_vectopre 3535
gtovecpre 3591
gtocol0 3626
padicprec 4172
ser_unscale 4193
liftpol 5656
serdeflate 5740
round0 6020
ggrando 6657
greal 6783
degree 6790
var2_rfrac 7035
qf_RgM_apply 7507
gtovecsmall0 7707
numer 8631
gsubstpol 8708
poldeflate 8722
numerator 8925
var2_aux 9968
ser2rfrac_i 10748
subst_polmod 10969
geval_gp 11020
isinexactreal 14343
gdeflate 14525
gdvd 15809
qfeval 16715
gtovecsmall 18935
Itos 18977
mkintn 19526
serequalXk 21052
RgC_RgV_mulrealsym 21315
derivser 25248
integser 25878
liftall 26243
recvar 26579
gimag 29344
gceil 30220
gppoldegree 30895
ser_inv 42057
centerliftii 42518
gvar9 55160
centerlift 60473
floor_safe 62122
qfb_ZM_apply 67214
uu32toineg 72144
gtovec 101716
poldegree 102183
gtovec0 106035
vecdenom 111541
_sercoef 113081
deriv 114128
denominator 124264
mkvecsmalln 125888
content0 131005
is_realext 177324
gtrunc 188802
gfrac 221841
denom 225024
uu32toi 241489
gge 248431
padic_to_Q 269716
roundr_safe 285522
gdiventgs 296929
ZX_deflate_max 316249
deg2pol_shallow 318632
issmall 326463
qfbeval 347816
qfnorm0 347879
qfeval0 347935
isint 445591
qf_ZM_apply 490483
init_qf_apply 497990
RgX_degree 502991
ZX_deflate_order 511408
RgX_deflate_max 514570
RgX_deflate_order 527247
deg1pol 556146
lift_shallow 590697
gnot 603883
polcoef 728903
subst_higher 750099
ser2pol_i_normalize 750158
gmodulss 774518
gtopoly 1034584
ceil_safe 1040437
gmodulsg 1076948
mkvecn 1111421
gcvtoi 1114032
precrealexact 1189977
gdivround 1465026
gmodulo 1599045
isrealappr 1802630
liftall_shallow 2003435
lift 2151440
_polcoef 2251799
lift0 2302323
RgX_cxeval 2366215
ggt 2374039
gtopolyrev 2434131
gsubst 2737505
ground 2798755
poleval 2892242
polcoef_i 2952473
_gtopoly 3468716
scalarpol_shallow 3604684
roundr 3657962
modRr_i 4856462
gfloor 5335075
mkpoln 5469878
gdiventsg 6198230
gdivent 6200418
glt 6328102
gle 7628244
deg1pol_shallow 8390927
numer_i 8977715
ser2pol_i 10070311
prec0 10266501
denom_i 10349508
simplify 10809925
mulreal 12051328
gprecision 14122760
scalarpol 16895220
gvar2 20639983
liftpol_shallow 21209038
gmodgs 22028056
precCOMPLEX 22262806
gmodsg 44990132
gmod 46136994
geq 47184303
gshift 48441864
round_i 53393473
gne 60854695
diviiround 65765622
grndtoi 89678070
_egal 108039003
_egal_i 108039011
gtrunc2n 113567952
gvar 128597039
isinexact 132081232
op_ReIm 197104893
imag_i 286704796
real_i 321423625
simplify_shallow 526864649
precREAL 928841643
precision 941060602

Generated by: LCOV version 1.14