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 16804-345a01c) Lines: 850 947 89.8 %
Date: 2014-09-20 Functions: 87 92 94.6 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 396 624 63.5 %

Function Name Sort by function name Hit count Sort by hit count
_invf 415044
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 259
checktabsimp 18809
code_aux 497
condfin 10038
divr2_ip 549710
err_code 0
expscalpr 47495
exptab 7
expvec 14
expvecpr 14
f_getycplx 406
ffmodify 0
ffprime 20062
findmforinit 287
gettmpN 70
gettmpP 42
homtab 182
initexpexp 56
initexpsinh 21
initnumsine 84
initsinh 14
initsinhsinh 21
inittanhsinh 63
intcirc 7
intcirc0 7
interp 322
intfourcos0 7
intfourexp0 7
intfouriercos 14
intfourierexp 7
intfouriersin 14
intfoursin0 7
intfuncinit 7
intfuncinit0 7
intfuncinitintern 7
intinit_end 273
intinit_start 273
intinvintern 35
intlaplaceinv 28
intlaplaceinv0 28
intmellininv 7
intmellininv0 7
intmellininvshort 7
intn 9373
intninfinf 42
intninfinfintern 49
intninfpm 259
intnsing 7
intnum 9513
intnum0 9471
intnum_i 9590
intnuminit 252
intnuminit0 9541
intnuminitgen 14
intnuminitgen0 14
intnumromb 63
intnumromb0 63
intnumstep 14
is_fin_f 560
is_osc_f 10066
isinC 19257
isinR 19740
myderiv_num 20062
mytra 56
qrom2 49
qrom3 14
qromi 14
rom_bsmall 21
rombint 21
suminit_start 84
sumnum 42
sumnum0 42
sumnumall 49
sumnumalt 7
sumnumalt0 7
sumnuminit 35
sumnuminit0 49
transcode 19768
weight 7

Generated by: LCOV version 1.9