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 - language - intnum.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.12.0 lcov report (development 23171-a5c0ed393) Lines: 1401 1437 97.5 %
Date: 2018-10-20 05:38:07 Functions: 114 115 99.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
intnumromb 0
intcirc 7
intcirc0 7
qrom3 7
sumnumlagrange2init 7
veczetaprime 7
err_code 14
initsinhsinh 14
sumaux 14
add_sumrfrac 21
checksumtab 28
get_kN 28
intnumainfrat 28
prodnumrat 28
qromi 28
rfrac_eval0 28
rom_bsmall 28
sumnumrat_i 28
M_from_wrapmon 35
contfraceval 35
intnumgaussinit 35
rombint 35
sumnumlagrange1init 35
ratpolemax2 42
sumeulerrat 42
intnumgauexp 49
intnumgauexpinit 49
prodeulerrat 49
ratpolemax 49
sumlogzeta 49
sumnumapinit 49
sumnumlagrangeinit_i 49
intnumgauss 56
intnumgauss0 56
intnumromb0_bitprec 56
intnumromb_bitprec 56
sumnumap 56
sumnumap0 56
sumnumrat 56
qrom2 63
sumnumlagrangeinit 63
intlin 70
sumnumlagrange 84
sumnumlagrange0 84
sumnum0 91
interp 105
initnumsine 112
exptab 119
sumnuminit 119
initsinh 126
intfuncinit_i 126
polmax 133
sumnum 133
initexpexp 140
intfuncinit 140
intfuncinit0 140
is_osc 140
sumnummonieninit 161
monroots 175
sumnummonien0 175
get_oo 196
checkmonroots 224
sumnummonien 231
sumnummonieninit_i 231
expvec 238
expvecpr 238
initexpsinh 238
weight 252
Pade 273
RX_realroots 273
intnsing 350
homtab 413
checktabdoub 532
intninfpm 532
intninfinf 581
inittanhsinh 595
init_fin 819
intnuminit 966
is_fin_f 966
intnuminit_i 1106
intinit_end 1225
intinit_start 1225
logzetan 1680
f_getycplx 2009
RFRAC_eval 2093
add_RFRAC_eval 2093
rfrac_eval 2093
monrefine 2352
contfrac_Euler 3647
contfracinit 3668
auxcirc 3675
contfracinit_i 3920
sdmob 3927
intn 3974
code_aux 4333
checktab 4597
intnum0 4620
intnum_i 5318
intnuminit0 5318
intnum 5346
checktabsimp 9509
_invf 12474
sercoeff 17073
wrapmonw2 18819
isinC 23246
transcode 23771
isinR 25276
_exfn 31157
wrapmonw 34384
auxlin 36750
expscalpr 128643
id 187922
divr2_ip 500012
_mpmul 1844164
contfraceval_inv 4461854

Generated by: LCOV version 1.13