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 17611-4505802) Lines: 860 934 92.1 %
Date: 2015-03-06 Functions: 88 92 95.7 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 411 614 66.9 %

Function Name Sort by function name Hit count Sort by hit count
_invf 413343
auxcirc 9317
auxfour 40236
auxinv 236789
auxmelshort 5019
auxsum 52528
auxsum0 0
auxsum1 231567
auxsumalt0 0
auxsumalt1 26271
auxsumintern 0
auxsumintern1 257838
checktab 9380
checktabdoub 266
checktabsimp 18816
code_aux 525
condfin 10038
divr2_ip 559041
err_code 7
expscalpr 57498
exptab 14
expvec 28
expvecpr 28
f_getycplx 392
ffmodify 0
ffprime 20062
getinf 70
homtab 182
init_fin 196
initexpexp 56
initexpsinh 28
initnumsine 84
initsinh 14
initsinhsinh 21
inittanhsinh 70
intcirc 7
intcirc0 7
interp 210
intfourcos0 7
intfourexp0 7
intfouriercos 14
intfourierexp 7
intfouriersin 14
intfoursin0 7
intfuncinit 7
intfuncinit0 7
intfuncinitintern 7
intinit_end 287
intinit_start 287
intinvintern 35
intlaplaceinv 28
intlaplaceinv0 28
intmellininv 7
intmellininv0 7
intmellininvshort 7
intn 9373
intninfinf 42
intninfinfintern 49
intninfpm 266
intnsing 14
intnum 9534
intnum0 9492
intnum_i 9611
intnuminit 280
intnuminit0 9562
intnuminit_i 280
intnuminitgen 14
intnuminitgen0 14
intnumromb 35
intnumromb0 35
intnumstep 280
is_fin_f 140
is_osc_f 10066
isinC 19299
isinR 19803
myderiv_num 20062
mytra 56
qrom2 28
qrom3 7
qromi 7
rom_bsmall 14
rombint 14
suminit_start 84
sumnum 42
sumnum0 42
sumnumall 49
sumnumalt 7
sumnumalt0 7
sumnuminit 35
sumnuminit0 49
transcode 19866
weight 7

Generated by: LCOV version 1.9