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-bordeaux1.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 17932-6fdb233) Lines: 970 1019 95.2 %
Date: 2015-08-02 Functions: 77 79 97.5 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 479 634 75.6 %

Function Name Sort by function name Hit count Sort by hit count
Pade 112
RgV_Rg_addall 0
_invf 413343
_zeta 756
auxcirc 3675
checksumtab 21
checktab 4361
checktabdoub 392
checktabsimp 8736
code_aux 2401
contfrac_Euler 448
contfraceval 3271
contfracinit 462
contfracinit_i 560
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 210
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 35
intnumromb0 35
is_fin_f 959
is_osc 105
isinC 2485
isinR 2821
monrefine 1204
monroots 91
qrom2 28
qrom3 7
qromi 7
rom_bsmall 14
rombint 14
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