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 17713-366b110) Lines: 854 882 96.8 %
Date: 2015-04-01 Functions: 73 76 96.1 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 436 569 76.6 %

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 3745
checktabdoub 315
checktabsimp 7588
code_aux 679
contfrac_Euler 35
contfraceval 28
contfracinit 49
divr2_ip 489594
err_code 7
expscalpr 74529
exptab 63
expvec 126
expvecpr 126
f_getycplx 588
homtab 224
id 268506
init_fin 189
initexpexp 70
initexpsinh 91
initnumsine 112
initsinh 14
initsinhsinh 21
inittanhsinh 112
intcirc 7
intcirc0 7
interp 210
intfuncinit 14
intfuncinit0 14
intfuncinit_i 14
intinit_end 420
intinit_start 420
intn 3745
intninfinf 42
intninfinfintern 49
intninfpm 315
intnsing 42
intnum 3976
intnum0 3969
intnum_i 3990
intnumgauss 49
intnumgauss0 49
intnumgaussinit 35
intnuminit 329
intnuminit0 3976
intnuminit_i 343
intnumromb 35
intnumromb0 35
is_fin_f 168
is_osc 14
isinC 763
isinR 1225
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 8694
weight 28

Generated by: LCOV version 1.9