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 - language - intnum.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 20459-9710128) Lines: 1388 1419 97.8 %
Date: 2017-04-27 05:33:52 Functions: 115 116 99.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
M_from_wrapmon 30
Pade 186
RFRAC_eval 5388
RX_realroots 186
_add 24
_exfn 26706
_invf 10692
_mpmul 1580712
_sub 24
add_RFRAC_eval 5388
add_sumrfrac 54
auxcirc 3150
checkmonroots 144
checksumtab 24
checktab 3810
checktabdoub 408
checktabsimp 7560
code_aux 2208
contfrac_Euler 2022
contfraceval 30
contfraceval_inv 1577022
contfracinit 2040
contfracinit_i 2208
divr2_ip 224502
err_code 18
expscalpr 118674
exptab 102
expvec 204
expvecpr 204
f_getycplx 1674
get_kN 60
get_oo 168
homtab 306
id 146100
init_fin 300
initexpexp 72
initexpsinh 204
initnumsine 96
initsinh 108
initsinhsinh 12
inittanhsinh 102
intcirc 6
intcirc0 6
interp 90
intfuncinit 120
intfuncinit0 120
intfuncinit_i 108
intinit_end 594
intinit_start 594
intn 3210
intninfinf 498
intninfpm 408
intnsing 36
intnum 4044
intnum0 3888
intnum_i 4044
intnumainfrat 60
intnumgauexp 42
intnumgauexpinit 42
intnumgauss 48
intnumgauss0 48
intnumgaussinit 30
intnuminit 426
intnuminit0 4044
intnuminit_i 546
intnumromb 0
intnumromb0_bitprec 48
intnumromb_bitprec 48
is_fin_f 828
is_osc 120
isinC 9246
isinR 9546
logzetan 1284
monrefine 1338
monroots 102
polmax 144
prodeulerrat 42
prodnumrat 24
qrom2 54
qrom3 6
qromi 24
ratpolemax 72
ratpolemax2 36
rfrac_eval 5448
rfrac_eval0 96
rom_bsmall 24
rombint 30
sdmob 2892
sercoeff 16794
sumaltrat 66
sumaux 12
sumeulerrat 30
sumlogzeta 36
sumnum 114
sumnum0 78
sumnumap 48
sumnumap0 48
sumnumapinit 42
sumnuminit 102
sumnumlagrange 72
sumnumlagrange0 72
sumnumlagrange1init 30
sumnumlagrange2init 6
sumnumlagrangeinit 54
sumnumlagrangeinit_i 42
sumnummonien 150
sumnummonien0 150
sumnummonieninit 90
sumnummonieninit_i 150
sumnumrat 48
sumnumrat_i 60
transcode 9384
veczetaprime 6
weight 216
wrapmonw 34560
wrapmonw2 18702

Generated by: LCOV version 1.11