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-bordeaux.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.10.0 lcov report (development 20443-183d202) Lines: 1388 1419 97.8 %
Date: 2017-03-27 05:17:48 Functions: 115 116 99.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
M_from_wrapmon 25
Pade 155
RFRAC_eval 4490
RX_realroots 155
_add 20
_exfn 22255
_invf 8910
_mpmul 1317260
_sub 20
add_RFRAC_eval 4490
add_sumrfrac 45
auxcirc 2625
checkmonroots 120
checksumtab 20
checktab 3175
checktabdoub 340
checktabsimp 6300
code_aux 1840
contfrac_Euler 1685
contfraceval 25
contfraceval_inv 1314185
contfracinit 1700
contfracinit_i 1840
divr2_ip 187085
err_code 15
expscalpr 98895
exptab 85
expvec 170
expvecpr 170
f_getycplx 1395
get_kN 50
get_oo 140
homtab 255
id 121750
init_fin 250
initexpexp 60
initexpsinh 170
initnumsine 80
initsinh 90
initsinhsinh 10
inittanhsinh 85
intcirc 5
intcirc0 5
interp 75
intfuncinit 100
intfuncinit0 100
intfuncinit_i 90
intinit_end 495
intinit_start 495
intn 2675
intninfinf 415
intninfpm 340
intnsing 30
intnum 3370
intnum0 3240
intnum_i 3370
intnumainfrat 50
intnumgauexp 35
intnumgauexpinit 35
intnumgauss 40
intnumgauss0 40
intnumgaussinit 25
intnuminit 355
intnuminit0 3370
intnuminit_i 455
intnumromb 0
intnumromb0_bitprec 40
intnumromb_bitprec 40
is_fin_f 690
is_osc 100
isinC 7705
isinR 7955
logzetan 1070
monrefine 1115
monroots 85
polmax 120
prodeulerrat 35
prodnumrat 20
qrom2 45
qrom3 5
qromi 20
ratpolemax 60
ratpolemax2 30
rfrac_eval 4540
rfrac_eval0 80
rom_bsmall 20
rombint 25
sdmob 2410
sercoeff 13995
sumaltrat 55
sumaux 10
sumeulerrat 25
sumlogzeta 30
sumnum 95
sumnum0 65
sumnumap 40
sumnumap0 40
sumnumapinit 35
sumnuminit 85
sumnumlagrange 60
sumnumlagrange0 60
sumnumlagrange1init 25
sumnumlagrange2init 5
sumnumlagrangeinit 45
sumnumlagrangeinit_i 35
sumnummonien 125
sumnummonien0 125
sumnummonieninit 75
sumnummonieninit_i 125
sumnumrat 40
sumnumrat_i 50
transcode 7820
veczetaprime 5
weight 180
wrapmonw 28800
wrapmonw2 15585

Generated by: LCOV version 1.11