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.10.0 lcov report (development 20422-b487f4d) Lines: 2080 2251 92.4 %
Date: 2017-03-22 05:51:54 Functions: 210 219 95.9 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Itos 2814598
QpV_to_QV 91
RgM_mulreal 0
RgX_cxeval 289179
RgX_deflate_max 14672
RgX_deflate_order 14784
RgX_degree 22099
RgX_integ 483
ZX_deflate_max 23628
ZX_deflate_order 48513
_egal 24304335
_egal_i 24304335
_gtopoly 2501149
_polcoeff 130298
_quot 602
_quotfi 7
_quotfs 77
_quotri 7
_quotrs 28
_quotsf 35
_quotsr 70
_rfraccoeff 21
_sercoeff 12621
bitprecision0 567
ceil_safe 64034
ceilr 3033
centerlift 13454
centerlift0 105
centerliftii 9408
coefstoser 7
compo 305
deg1pol 526121
deg1pol_shallow 1952631
degree 0
denom 9552830
deriv 104321
derivser 11186
diffop 3535
diffop0 42
diviiround 11481301
divrem 896
err_intformal 35
floor_safe 8321
gceil 16846
gcvtoi 83397
gdeflate 210
gdivent 6086318
gdiventgs 1443
gdiventres 23492
gdiventsg 6084462
gdivmod 0
gdivround 262066
gdvd 3934
geq 1091824
geval 0
geval_gp 10129
gfloor 4291327
gfrac 91
gge 127870
ggrando 4830
ggt 131677
gimag 2840
gle 7623329
glt 6213882
gmod 7616190
gmodgs 16614
gmodsg 7364568
gmodulo 872824
gmodulsg 747347
gmodulss 599103
gne 23212511
gnot 272482
gppadicprec 105
gppoldegree 6321
gprecision 2405329
gpserprec 28
greal 83568
grndtoi 8806405
ground 992930
gshift 40358861
gsubst 890960
gsubst_expr 35
gsubstpol 84
gsubstvec 756
gtocol 182
gtocol0 1197
gtocolrev 0
gtocolrev0 252
gtopoly 69720
gtopolyrev 2431429
gtoser 476
gtovec 241143
gtovec0 242186
gtovecpost 1155
gtovecpre 343
gtovecrev 7
gtovecrev0 266
gtovecsmall 1732377
gtovecsmall0 7392
gtovecsmallpost 84
gtovecsmallpre 84
gtrunc 889
gtrunc2n 10103201
gvar 100558178
gvar2 20354951
gvar9 46683
hqfeval 0
imag_i 350436
init_qf_apply 145662
init_vectopre 245
integ 350
integ_act 14
integser 11683
iscomplex 21
isinexact 128329985
isinexactreal 14581
isint 26180
isrationalzeroscalar 0
isrealappr 82549
issmall 7518
lift 100603
lift0 227538
lift_shallow 196032
liftall 126
liftall_shallow 945
liftint 119
liftint_shallow 546
liftpol 4599
liftpol_shallow 163093
listdeflate 21
lookup 833
mkcoln 21
mkintn 13468
mkpoln 2346771
mkvecn 37324
mkvecsmalln 2388
modRr_safe 517573
mod_r 168
modrs 14
modsf 35
modsr 35
mulreal 10998849
multi_coeff 29806
numer 8618210
op_ReIm 1186065
padic_to_Q 8316
padic_to_Q_shallow 21
padicprec 4172
padicprec_relative 2030
polcoeff0 13517
polcoeff_i 163891
poldeflate 112
poldegree 11263
poleval 1391466
pollead 3551
poltoser 98
prec0 10570
precCOMPLEX 3665417
precREAL 960665
precision 2735820
precision0 3339
precrealexact 506925
qf_apply_RgM 447
qf_apply_ZM 145215
qfb_apply_ZM 7
qfbeval 14
qfbevalb 7
qfbil 0
qfeval 21
qfeval0 133
qfevalb 21
qfnorm 0
qfnorm0 77
quot 553
quotfi 7
quotfs 77
quotrem 343
quotri 7
quotrs 14
quotsf 35
quotsr 35
real_i 6755106
recvar 329
rfractoser 42
round0 3696
round_i 14459518
roundr 2693057
roundr_safe 6672474
scalarpol 5040787
scalarpol_shallow 312258
scalarser 16954
ser2pol_i 3492510
ser2rfrac 259
ser2rfrac_i 3612
ser_inv 728
ser_unscale 616
serdeflate 35
serprec 56
serreverse 98
sertoser 273
simplify 10671834
simplify_shallow 318650598
swapvar_act 21
tayl 7
tayl_act 7
toser_i 462233
triv_integ 35
trunc0 217
uu32toi 231445
var2_aux 8337
var2_polmod 1302
var2_rfrac 7035
variables_vec 14
variables_vecsmall 7
vdeflate 63
vec_padicprec 826
vec_padicprec_relative 357
vec_serprec 14
vecdenom 721

Generated by: LCOV version 1.11