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 20123-c22c2cd) Lines: 1270 1298 97.8 %
Date: 2017-01-24 05:49:10 Functions: 107 108 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
_sub 28
add_RFRAC_eval 6286
add_sumrfrac 63
auxcirc 3675
checkmonroots 168
checksumtab 28
checktab 4445
checktabdoub 476
checktabsimp 8820
code_aux 2562
contfrac_Euler 2359
contfraceval 35
contfraceval_inv 1873029
contfracinit 2380
contfracinit_i 2576
divr2_ip 257764
err_code 21
expscalpr 137561
exptab 119
expvec 238
expvecpr 238
f_getycplx 1939
get_kN 70
get_oo 196
homtab 343
id 170450
init_fin 343
initexpexp 84
initexpsinh 238
initnumsine 105
initsinh 126
initsinhsinh 14
inittanhsinh 112
intcirc 7
intcirc0 7
interp 105
intfuncinit 126
intfuncinit0 126
intfuncinit_i 126
intinit_end 679
intinit_start 679
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 623
intnumromb 0
intnumromb0_bitprec 56
intnumromb_bitprec 56
is_fin_f 959
is_osc 140
isinC 10752
isinR 11088
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
sumeulerrat 35
sumlogzeta 42
sumnum 133
sumnum0 91
sumnumap 56
sumnumap0 56
sumnumapinit 49
sumnuminit 119
sumnummonien 175
sumnummonien0 175
sumnummonieninit 105
sumnummonieninit_i 175
sumnumrat 56
sumnumrat_i 70
transcode 10913
veczetaprime 7
weight 252
wrapmonw 39468
wrapmonw2 21387

Generated by: LCOV version 1.11