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

Generated by: LCOV version 1.11