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 17774-15dbd24) Lines: 856 882 97.1 %
Date: 2015-04-27 Functions: 73 76 96.1 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 439 569 77.2 %

Function Name Sort by function name Hit count Sort by hit count
_invf 413343
auxcirc 3675
auxsum 40166
auxsum0 0
auxsum1 158788
auxsumalt0 0
auxsumalt1 20090
auxsumintern 0
auxsumintern1 178878
checktab 4305
checktabdoub 315
checktabsimp 8708
code_aux 2247
contfrac_Euler 448
contfraceval 3271
contfracinit 462
divr2_ip 489594
err_code 7
expscalpr 74529
exptab 63
expvec 126
expvecpr 126
f_getycplx 1932
homtab 336
id 268506
init_fin 189
initexpexp 70
initexpsinh 91
initnumsine 112
initsinh 126
initsinhsinh 21
inittanhsinh 112
intcirc 7
intcirc0 7
interp 210
intfuncinit 126
intfuncinit0 126
intfuncinit_i 126
intinit_end 532
intinit_start 532
intn 3745
intninfinf 602
intninfinfintern 609
intninfpm 315
intnsing 42
intnum 4536
intnum0 4529
intnum_i 4550
intnumgauss 49
intnumgauss0 49
intnumgaussinit 35
intnuminit 329
intnuminit0 4536
intnuminit_i 455
intnumromb 35
intnumromb0 35
is_fin_f 952
is_osc 14
isinC 2331
isinR 2793
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
sumweight 158788
transcode 10262
weight 252

Generated by: LCOV version 1.9