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.11.0 lcov report (development 22851-e834f1b2f) Lines: 1400 1438 97.4 %
Date: 2018-07-16 05:36:59 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
sumeulerrat 35
sumnumlagrange1init 35
ratpolemax 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
qrom2 63
sumnumlagrangeinit 63
intlin 70
intnsing 70
initexpexp 84
sumnumlagrange 84
sumnumlagrange0 84
sumnum0 91
interp 105
sumnummonieninit 105
initnumsine 112
exptab 119
monroots 119
sumnuminit 119
initsinh 126
intfuncinit_i 126
polmax 126
sumnum 133
intfuncinit 140
intfuncinit0 140
is_osc 140
checkmonroots 168
sumnummonien 175
sumnummonien0 175
sumnummonieninit_i 175
get_oo 196
Pade 217
RX_realroots 217
expvec 238
expvecpr 238
initexpsinh 238
inittanhsinh 238
weight 252
homtab 357
init_fin 462
checktabdoub 476
intninfpm 476
intninfinf 581
intnuminit 609
intnuminit_i 749
intinit_end 812
intinit_start 812
is_fin_f 966
logzetan 1498
monrefine 1561
f_getycplx 1953
RFRAC_eval 2093
add_RFRAC_eval 2093
rfrac_eval 2093
sdmob 3374
contfrac_Euler 3626
contfracinit 3647
auxcirc 3675
intn 3829
contfracinit_i 3843
code_aux 4165
checktab 4522
intnum0 4620
intnum_i 4893
intnuminit0 4893
intnum 4921
checktabsimp 9009
_invf 12474
sercoeff 15127
wrapmonw2 18819
isinC 20832
transcode 21357
isinR 21602
_exfn 31157
wrapmonw 34384
auxlin 36750
expscalpr 128643
id 170450
divr2_ip 332206
_mpmul 1844164
contfraceval_inv 4456009

Generated by: LCOV version 1.13