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.8.0 lcov report (development 19361-ac4f238) Lines: 952 1007 94.5 %
Date: 2016-08-28 06:11:39 Functions: 78 81 96.3 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Pade 112
RgV_Rg_addall 0
_invf 10773
_zeta 756
auxcirc 3675
checksumtab 21
checktab 4361
checktabdoub 392
checktabsimp 8736
code_aux 2401
contfrac_Euler 2226
contfraceval 28
contfraceval_inv 1874877
contfracinit 2240
contfracinit_i 2338
divr2_ip 257764
err_code 7
expscalpr 113877
exptab 91
expvec 182
expvecpr 182
f_getycplx 1932
get_oo 105
gzetaprime 378
homtab 336
id 170450
init_fin 266
initexpexp 77
initexpsinh 168
initnumsine 105
initsinh 126
initsinhsinh 14
inittanhsinh 112
intcirc 7
intcirc0 7
interp 91
intfuncinit 126
intfuncinit0 126
intfuncinit_i 126
intinit_end 602
intinit_start 602
intn 3745
intninfinf 581
intninfpm 392
intnsing 42
intnum 4634
intnum0 4536
intnum_i 4634
intnumgauss 49
intnumgauss0 49
intnumgaussinit 35
intnuminit 406
intnuminit0 4634
intnuminit_i 532
intnumromb 0
intnumromb0_bitprec 49
intnumromb_bitprec 49
is_fin_f 959
is_osc 105
isinC 2485
isinR 2821
monrefine 1204
monroots 91
qrom2 56
qrom3 7
qromi 21
rom_bsmall 28
rombint 28
sumnum 98
sumnum0 91
sumnuminit 91
sumnummonien 119
sumnummonien0 119
sumnummonieninit 42
sumnummonieninit0 105
sumnummonieninit_i 42
sumnummonieninit_w 7
transcode 10570
weight 252
wrapmonw 7564
wrapmonw2 0

Generated by: LCOV version 1.11