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 28880-3b5364847c) Lines: 2408 2615 92.1 %
Date: 2023-12-01 07:53:15 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
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 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 2066
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 5894
greal 6146
ggrando 6650
degree 6790
var2_rfrac 7035
qf_RgM_apply 7607
gtovecsmall0 7707
numer 8631
gsubstpol 8708
poldeflate 8722
numerator 8925
ser2rfrac_i 9947
var2_aux 9968
subst_polmod 10969
geval_gp 11020
isinexactreal 14343
gdeflate 14525
gdvd 15795
qfeval 16715
gtovecsmall 18928
Itos 18984
mkintn 19526
serequalXk 21049
RgC_RgV_mulrealsym 21315
derivser 24542
integser 25172
liftall 26243
recvar 26579
gimag 29316
gceil 30211
gppoldegree 30895
ser_inv 41300
centerliftii 42518
gvar9 55160
centerlift 60473
floor_safe 61926
qfb_ZM_apply 67214
uu32toineg 72139
gtovec 101716
poldegree 102176
gtovec0 106035
_sercoef 110908
vecdenom 111541
deriv 114128
denominator 124264
mkvecsmalln 125171
content0 131005
is_realext 177324
gtrunc 188802
denom 225024
gfrac 235153
uu32toi 241484
gge 248429
padic_to_Q 269722
roundr_safe 282286
gdiventgs 296939
RgX_deflate_max 297763
RgX_deflate_order 310440
ZX_deflate_max 316147
deg2pol_shallow 317497
qfbeval 347816
qfnorm0 347879
qfeval0 347935
issmall 349802
isint 468221
qf_ZM_apply 490462
init_qf_apply 498069
RgX_degree 502996
ZX_deflate_order 511216
deg1pol 555800
gnot 575183
lift_shallow 590824
precrealexact 600858
polcoef 727559
ser2pol_i_normalize 747829
subst_higher 750057
gmodulss 774547
ceil_safe 1029469
gtopoly 1034022
gmodulsg 1077156
gcvtoi 1102226
mkvecn 1108445
isrealappr 1159622
gdivround 1465036
gmodulo 1600339
liftall_shallow 2003435
lift 2143401
_polcoef 2251879
RgX_cxeval 2251979
lift0 2294249
ggt 2345213
gtopolyrev 2434047
ground 2662680
gsubst 2737072
poleval 2945929
polcoef_i 2950411
scalarpol_shallow 3039016
_gtopoly 3468072
roundr 3571342
mkpoln 3692639
modRr_i 4854007
gfloor 5289457
gdiventsg 6198230
gdivent 6200418
glt 6328046
gle 7628276
deg1pol_shallow 7689382
numer_i 8977323
prec0 9766334
ser2pol_i 10045997
denom_i 10348962
simplify 10810019
mulreal 11329470
gprecision 12964729
scalarpol 16892386
precCOMPLEX 16967604
gvar2 20639899
liftpol_shallow 21209045
gmodgs 22028035
gshift 44784285
gmodsg 44990132
gmod 46137240
geq 47184491
round_i 52711332
gne 60840219
diviiround 65948346
grndtoi 87732729
gtrunc2n 91872789
_egal 108024713
_egal_i 108024719
op_ReIm 125863550
gvar 127819207
isinexact 131902281
imag_i 194124620
real_i 228490496
simplify_shallow 526812690
precREAL 905699691
precision 913937322

Generated by: LCOV version 1.14