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 17097-9391e68) Lines: 850 947 89.8 %
Date: 2014-11-21 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 295245
auxcirc 6655
auxfour 28740
auxinv 169135
auxmelshort 3585
auxsum 37520
auxsum0 0
auxsum1 165405
auxsumalt0 0
auxsumalt1 18765
auxsumintern 0
auxsumintern1 184170
checktab 6700
checktabdoub 185
checktabsimp 13435
code_aux 355
condfin 7170
divr2_ip 392650
err_code 0
expscalpr 33925
exptab 5
expvec 10
expvecpr 10
f_getycplx 290
ffmodify 0
ffprime 14330
findmforinit 205
gettmpN 50
gettmpP 30
homtab 130
initexpexp 40
initexpsinh 15
initnumsine 60
initsinh 10
initsinhsinh 15
inittanhsinh 45
intcirc 5
intcirc0 5
interp 145
intfourcos0 5
intfourexp0 5
intfouriercos 10
intfourierexp 5
intfouriersin 10
intfoursin0 5
intfuncinit 5
intfuncinit0 5
intfuncinitintern 5
intinit_end 195
intinit_start 195
intinvintern 25
intlaplaceinv 20
intlaplaceinv0 20
intmellininv 5
intmellininv0 5
intmellininvshort 5
intn 6695
intninfinf 30
intninfinfintern 35
intninfpm 185
intnsing 5
intnum 6795
intnum0 6765
intnum_i 6850
intnuminit 180
intnuminit0 6815
intnuminitgen 10
intnuminitgen0 10
intnumromb 20
intnumromb0 20
intnumstep 10
is_fin_f 400
is_osc_f 7190
isinC 13755
isinR 14100
myderiv_num 14330
mytra 40
qrom2 15
qrom3 5
qromi 5
rom_bsmall 5
rombint 5
suminit_start 60
sumnum 30
sumnum0 30
sumnumall 35
sumnumalt 5
sumnumalt0 5
sumnuminit 25
sumnuminit0 35
transcode 14120
weight 5

Generated by: LCOV version 1.9