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 - modules - stark.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 16624-25b9976) Lines: 1789 1988 90.0 %
Date: 2014-06-24 Functions: 115 122 94.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 880 1195 73.6 %

Function Name Sort by function name Hit count Sort by hit count
AddMulCoeff 6513373
AllStark 450
ArtinNumber 585
CharNewPrec 5
ComputeAChi 1485
ComputeAllArtinNumbers 485
ComputeCoeff 1060
ComputeImagebyChar 10285
ComputeKernel 345
ComputeKernel0 345
ComputeLift 455
ConjChar 620
CopyCoeff 326356
CorrectCoeff 1580
CplxModulus 225
EltsOfGroup 710
EvalChar 593146
EvalChar_n 594266
EvalCoeff 3596616
FindModulus 225
FreeMat 4295
GCD24 186
GenusFieldQuadImag 280
GenusFieldQuadReal 10
GetDeg 725
GetPrimChar 1570
GetST 260
GetST0 120
GetValue 845
GetValue1 30
InitChar 480
InitMatAn 2715
InitPrimes 345
InitPrimesQuad 140
InitQuotient 1815
InitRU 2260
InitReduction 1580
IsGoodSubgroup 781
IsZero 7962731
L_vanishes_at_0 1495
LiftChar 1485
MulCoeff 1449358
NextElt 37840
Order 779
PiBound 485
Polmod2Coeff 351715
QuadGetST 155
RecCoeff 390
RecCoeff2 1445
RecCoeff3 298
SingleArtinNumber 5
TestOne 1776
_0toCoeff 977416
_addmulrr 85404734
_addrr 170392664
_cond 1565
_data4 580
_sercoeff 206540
affect_coeff 206540
an_AddMul 326356
an_mul 102494
an_set0 105
an_set0_coprime 91513
bnrL1 35
bnrrootnumber 5
bnrstark 145
chk_reccoeff 266
chk_reccoeff_init 303
clear_cScT 280
compocyclo 0
computeP2 45
computean 520
computeth2 3005
deg0 25
deg11 335
deg12 20859
deg2 21868
divcond 600
do_compo 0
ellphist 6010
ellphistinit 3005
findbezk 3050
findbezk_pol 45
findquad 0
findquad_pol 0
form_to_ideal 0
galoisapplypol 0
get_Char 1710
get_cS_cT 604741
get_chic 1710
get_lambda 45
get_listCR 225
get_om 3005
get_prdiff 110
get_prec 0
get_subgroup 175
getallelts 45
getallrootsof1 45
gpq 2780
hasexp2 186
init_CHI 2665
init_CHI_C 1010
init_CHI_alg 1655
init_cScT 160
init_get_chic 625
init_pq 15
isZ 45
makescind 90
mpvecpowdiv 160
next_pow 544725
ppgamma 160
qfbforms 295
quadhilbert 405
quadhilbertimag 295
quadhilbertreal 100
quadray 75
quadray_init 555
sortChars 480
split_pol_quad 90
to_approx 6055
treatspecialsigma 45
uhasexp2 910

Generated by: LCOV version 1.9