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 19081-e84bc4a) Lines: 974 1026 94.9 %
Date: 2016-07-01 Functions: 78 81 96.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 471 624 75.5 %

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 1946
contfraceval 28
contfraceval_inv 1726961
contfracinit 1960
contfracinit_i 2058
divr2_ip 250607
err_code 7
expscalpr 112955
exptab 91
expvec 182
expvecpr 182
f_getycplx 1918
get_oo 105
gzetaprime 378
homtab 336
id 169988
init_fin 266
initexpexp 77
initexpsinh 168
initnumsine 105
initsinh 126
initsinhsinh 7
inittanhsinh 112
intcirc 7
intcirc0 7
interp 91
intfuncinit 126
intfuncinit0 126
intfuncinit_i 126
intinit_end 595
intinit_start 595
intn 3745
intninfinf 581
intninfpm 392
intnsing 42
intnum 4634
intnum0 4536
intnum_i 4634
intnumgauss 49
intnumgauss0 49
intnumgaussinit 35
intnuminit 392
intnuminit0 4634
intnuminit_i 518
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 10556
weight 252
wrapmonw 7508
wrapmonw2 0

Generated by: LCOV version 1.9