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 21348-d75f58f) Lines: 1387 1418 97.8 %
Date: 2017-11-20 06:21:05 Functions: 115 116 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
initsinhsinh 14
sumaux 14
err_code 21
_add 28
_sub 28
checksumtab 28
prodnumrat 28
qromi 28
rom_bsmall 28
M_from_wrapmon 35
contfraceval 35
intnumgaussinit 35
rombint 35
sumeulerrat 35
sumnumlagrange1init 35
intnsing 42
ratpolemax2 42
sumlogzeta 42
intnumgauexp 49
intnumgauexpinit 49
prodeulerrat 49
sumnumapinit 49
sumnumlagrangeinit_i 49
intnumgauss 56
intnumgauss0 56
intnumromb0_bitprec 56
intnumromb_bitprec 56
sumnumap 56
sumnumap0 56
sumnumrat 56
add_sumrfrac 63
qrom2 63
sumnumlagrangeinit 63
get_kN 70
intnumainfrat 70
sumnumrat_i 70
sumaltrat 77
initexpexp 84
ratpolemax 84
sumnumlagrange 84
sumnumlagrange0 84
sumnum0 91
interp 105
sumnummonieninit 105
initnumsine 112
rfrac_eval0 112
exptab 119
inittanhsinh 119
monroots 119
sumnuminit 119
initsinh 126
intfuncinit_i 126
sumnum 133
intfuncinit 140
intfuncinit0 140
is_osc 140
checkmonroots 168
polmax 168
sumnummonien 175
sumnummonien0 175
sumnummonieninit_i 175
get_oo 196
Pade 217
RX_realroots 217
expvec 238
expvecpr 238
initexpsinh 238
weight 252
init_fin 350
homtab 357
checktabdoub 476
intninfpm 476
intnuminit 497
intninfinf 581
intnuminit_i 637
intinit_end 693
intinit_start 693
is_fin_f 966
logzetan 1498
monrefine 1561
f_getycplx 1953
code_aux 2576
contfrac_Euler 3073
contfracinit 3094
contfracinit_i 3290
sdmob 3374
auxcirc 3675
intn 3745
checktab 4445
intnum0 4536
intnum 4718
intnum_i 4718
intnuminit0 4718
RFRAC_eval 6286
add_RFRAC_eval 6286
rfrac_eval 6356
checktabsimp 8820
isinC 10787
transcode 10941
isinR 11137
_invf 12474
wrapmonw2 18819
sercoeff 19593
_exfn 31157
wrapmonw 34384
expscalpr 128643
id 170450
divr2_ip 261378
_mpmul 1844164
contfraceval_inv 1945424

Generated by: LCOV version 1.11