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 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.8.0 lcov report (development 19199-979caa2) Lines: 2037 2244 90.8 %
Date: 2016-07-24 07:10:30 Functions: 206 214 96.3 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Itos 2941886
QpV_to_QV 70
RgM_mulreal 0
RgX_cxeval 277599
RgX_deflate_max 14171
RgX_deflate_order 14283
RgX_degree 22148
RgX_integ 98
ZX_deflate_max 21149
ZX_deflate_order 37627
_egal 24203352
_egal_i 24203352
_gtopoly 2492553
_polcoeff 199080
_quot 602
_quotfi 7
_quotfs 77
_quotri 7
_quotrs 28
_quotsf 35
_quotsr 70
_rfraccoeff 21
_sercoeff 1309
bitprecision0 35
ceil_safe 63360
ceilr 26658
centerlift 13454
centerlift0 105
centerliftii 9408
coefstoser 7
compo 312
deg1pol 523072
deg1pol_shallow 1736520
degree 0
denom 9168278
deriv 104195
derivser 9891
diffop 3535
diffop0 42
diviiround 12690273
divrem 896
err_intformal 35
floor_safe 7793
gceil 39099
gcvtoi 82195
gdeflate 210
gdivent 6085968
gdiventgs 1429
gdiventres 21357
gdiventsg 6084140
gdivmod 0
gdivround 496538
gdvd 3850
geq 1218187
geval 0
geval_gp 10129
gfloor 4192831
gfrac 91
gge 124174
ggrando 4641
ggt 132482
gimag 2525
gle 7623457
glt 6211614
gmod 7727195
gmodgs 13851
gmodsg 7420085
gmodulo 822985
gmodulsg 695470
gmodulss 600371
gne 22985165
gnot 259441
gppadicprec 105
gppoldegree 5089
gprecision 2630846
gpserprec 28
greal 81265
grndtoi 8301641
ground 953857
gshift 40854975
gsubst 210112
gsubst_expr 35
gsubstpol 84
gsubstvec 756
gtocol 182
gtocol0 1197
gtocolrev 0
gtocolrev0 252
gtopoly 68138
gtopolyrev 2424415
gtoser 172144
gtovec 245455
gtovec0 246491
gtovecpost 1141
gtovecpre 343
gtovecrev 7
gtovecrev0 266
gtovecsmall 1736521
gtovecsmall0 13447
gtovecsmallpost 84
gtovecsmallpre 84
gtrunc 882
gtrunc2n 10029130
gvar 98869733
gvar2 19904011
gvar9 47789
hqfeval 0
imag_i 351592
init_qf_apply 145712
init_vectopre 245
integ 350
integ_act 14
integser 10409
inv_ser 294
iscomplex 21
isinexact 128557513
isinexactreal 13125
isint 24360
isrationalzeroscalar 0
isrealappr 77844
issmall 7469
lift 135837
lift0 225350
lift_intern 218088
liftall 77
liftall_shallow 679
liftint 119
liftint_shallow 546
liftpol 98
liftpol_shallow 139013
listdeflate 21
lookup 833
mkcoln 0
mkintn 14105
mkpoln 1783683
mkvecn 16933
mkvecsmalln 3872
mod_r 168
modr_safe 450373
modrs 14
modsf 35
modsr 35
mulreal 11028692
multi_coeff 41902
numer 8233322
op_ReIm 1141785
padic_to_Q 8141
padic_to_Q_shallow 21
padicprec 147
padicprec_relative 826
polcoeff0 59591
polcoeff_i 186529
poldeflate 112
poldegree 9161
poleval 678865
pollead 3376
poltoser 173495
prec0 10914
precCOMPLEX 1951788
precREAL 920461
precision 1253175
precision0 3276
precrealexact 326712
qf_apply_RgM 497
qf_apply_ZM 145215
qfbil 42
qfeval 21
qfevalb 21
qfnorm 56
quot 553
quotfi 7
quotfs 77
quotrem 343
quotri 7
quotrs 14
quotsf 35
quotsr 35
real_i 6461260
recvar 329
rfractoser 171563
round0 3626
round_i 16899322
roundr 2666735
roundr_safe 9605899
scalarpol 5448330
scalarpol_shallow 234187
scalarser 186417
ser2pol_i 3221013
ser2rfrac 252
ser2rfrac_i 3262
ser_unscale 602
serdeflate 35
serprec 56
serreverse 49
sertoser 266
simplify 10837818
simplify_shallow 311819257
swapvar_act 21
tayl 7
tayl_act 7
toser_i 646736
triv_integ 35
trunc0 217
uu32toi 426950
var2_aux 8561
var2_polmod 1526
var2_rfrac 7035
variables_vec 14
variables_vecsmall 7
vdeflate 63
vec_padicprec 21
vec_padicprec_relative 224
vec_serprec 14
vecdenom 812

Generated by: LCOV version 1.11