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-bordeaux1.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 17234-4181bc5) Lines: 1974 2170 91.0 %
Date: 2014-12-18 Functions: 195 205 95.1 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1488 1900 78.3 %

Function Name Sort by function name Hit count Sort by hit count
Itos 5768
QpV_to_QV 56
RgM_mulreal 0
RgX_RgM_eval_col 0
RgX_deflate_max 27931
RgX_degree 19229
RgX_integ 98
_egal 6165985
_gtopoly 2380315
_polcoeff 125307
_quot 546
_quotfi 7
_quotfs 14
_quotri 14
_quotrs 42
_quotsf 35
_quotsr 105
_rfraccoeff 21
_sercoeff 896
ceil_safe 53854
ceilr 1556
centerlift 9135
centerlift0 392
centerliftii 7595
checkdeflate 28015
coefstoser 7
compo 308
deg1pol 966
deg1pol_shallow 322118
degree 0
denom 9133425
deriv 77707
derivser 847
diffop 3556
diffop0 42
diviiround 9079096
divrem 896
err_intformal 35
floor_safe 7494
gceil 9483
gcvtoi 72432
gdeflate 182
gdivent 5497226
gdiventgs 939
gdiventres 903
gdiventsg 5495503
gdivmod 0
gdivround 491148
gdvd 3913
geq 615916
geval 0
geval_gp 9814
gfloor 2577874
gfrac 91
gge 124152
ggrando 3654
ggt 136031
gimag 175
gle 7719635
glt 5933227
gmod 6028666
gmodgs 13780
gmodsg 5778900
gmodulo 784728
gmodulsg 684451
gmodulss 596929
gne 5550069
gnot 259215
gppoldegree 2373
gprecision 2299634
greal 159140
grndtoi 7858196
ground 855212
gshift 5436045
gsubst 72044
gsubst_expr 35
gsubstpol 56
gsubstvec 238
gtocol 182
gtocol0 1197
gtocolrev 0
gtocolrev0 252
gtopoly 59234
gtopolyrev 2321081
gtoser 350
gtovec 213787
gtovec0 214984
gtovecpost 1029
gtovecpre 336
gtovecrev 0
gtovecrev0 252
gtovecsmall 2555
gtovecsmall0 742
gtovecsmallpost 84
gtovecsmallpre 84
gtrunc 735
gtrunc2n 8267134
gvar 95485972
gvar2 19900292
gvar9 30156
hqfeval 0
imag_i 368506
init_qf_apply 143528
init_vectopre 245
integ 350
integ_act 14
integser 1386
inv_ser 294
iscomplex 21
isinexact 129062808
isinexactreal 11697
isint 3052
isrationalzeroscalar 0
isrealappr 68767
issmall 2849
lift 100220
lift0 166223
lift_intern 173729
liftall 56
liftall_shallow 119
liftint 63
liftint_shallow 133
liftpol 49
liftpol_shallow 128611
listdeflate 21
lookup 854
mkcoln 0
mkintn 13419
mkpoln 951036
mkvecn 4753
mkvecsmalln 105787
mod_r 168
modr_safe 423756
modrs 14
modsf 35
modsr 35
mulreal 10658655
multi_coeff 38325
numer 8199317
op_ReIm 357832
padic_to_Q 665
padic_to_Q_shallow 7
padicprec 126
padicprec_relative 595
polcoeff0 4914
polcoeff_i 164766
poldeflate 112
poldegree 5535
poleval 690143
pollead 2298
poltoser 441
prec0 1613
precCOMPLEX 1423608
precREAL 832259
precision 587509
precision0 1379
precrealexact 150500
qf_apply_RgM 441
qf_apply_ZM 143087
qfbil 42
qfeval 21
qfevalb 21
qfnorm 56
quot 497
quotfi 7
quotfs 14
quotrem 259
quotri 14
quotrs 28
quotsf 35
quotsr 70
real_i 2694218
recvar 329
rfractoser 49
round0 1925
round_i 14898009
roundr 871318
roundr_safe 9456030
scalarpol 4795820
scalarpol_shallow 12014
scalarser 3178
ser2pol_i 236203
ser2rfrac 224
ser2rfrac_i 1785
ser_unscale 588
serdeflate 14
serreverse 49
simplify 10781063
simplify_shallow 257538071
swapvar_act 21
tayl 7
tayl_act 7
toser_i 609161
triv_integ 35
trunc0 217
uu32toi 104739
var2_aux 7427
var2_polmod 385
var2_rfrac 7042
variables_vec 14
variables_vecsmall 7
vdeflate 63
vec_padicprec 21
vec_padicprec_relative 161
vecdenom 182

Generated by: LCOV version 1.9