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 21703-2e13792) Lines: 1429 1461 97.8 %
Date: 2018-01-17 06:18:31 Functions: 117 118 99.2 %
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 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
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
intlin 70
intnsing 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
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
inittanhsinh 224
expvec 238
expvecpr 238
initexpsinh 238
weight 252
homtab 357
init_fin 448
checktabdoub 476
intninfpm 476
intninfinf 581
intnuminit 595
intnuminit_i 735
intinit_end 798
intinit_start 798
is_fin_f 966
logzetan 1498
monrefine 1561
f_getycplx 1953
contfrac_Euler 3073
contfracinit 3094
contfracinit_i 3290
sdmob 3374
auxcirc 3675
intn 3815
code_aux 4165
checktab 4522
intnum0 4606
intnum_i 4879
intnuminit0 4879
intnum 4907
RFRAC_eval 6286
add_RFRAC_eval 6286
rfrac_eval 6356
checktabsimp 8995
_invf 12474
wrapmonw2 18819
sercoeff 19593
isinC 20748
transcode 21273
isinR 21518
_exfn 31157
wrapmonw 34384
auxlin 36750
expscalpr 128643
id 170450
divr2_ip 313810
_mpmul 1844164
contfraceval_inv 1945424

Generated by: LCOV version 1.11