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 16791-0d1274a) Lines: 1791 1987 90.1 %
Date: 2014-09-16 Functions: 115 122 94.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 889 1193 74.5 %

Function Name Sort by function name Hit count Sort by hit count
_addrr 70409350
_addmulrr 34868730
IsZero 5765336
AddMulCoeff 3884075
EvalCoeff 3054063
MulCoeff 1881261
_0toCoeff 1395257
EvalChar_n 568388
EvalChar 567123
next_pow 494408
get_cS_cT 356025
Polmod2Coeff 301591
affect_coeff 225420
_sercoeff 225420
CopyCoeff 221440
an_AddMul 221440
an_mul 131192
an_set0_coprime 118431
NextElt 46970
deg2 26286
deg12 25006
ComputeImagebyChar 11645
to_approx 6055
ellphist 6010
FreeMat 4740
findbezk 3050
ellphistinit 3005
computeth2 3005
get_om 3005
InitMatAn 2990
init_CHI 2985
gpq 2780
InitRU 2645
init_CHI_alg 1875
get_chic 1820
get_Char 1820
InitQuotient 1820
CorrectCoeff 1750
InitReduction 1750
TestOne 1701
GetPrimChar 1625
_cond 1620
L_vanishes_at_0 1610
ComputeAChi 1600
LiftChar 1560
RecCoeff2 1460
ComputeCoeff 1115
init_CHI_C 1110
GetValue 1015
uhasexp2 910
IsGoodSubgroup 780
Order 780
GetDeg 755
EltsOfGroup 735
ConjChar 695
divcond 685
init_get_chic 685
ArtinNumber 655
computean 635
_data4 620
quadray_init 555
ComputeAllArtinNumbers 510
PiBound 510
InitChar 485
sortChars 485
ComputeLift 475
AllStark 450
RecCoeff 430
quadhilbert 405
deg11 350
InitPrimes 350
ComputeKernel0 345
ComputeKernel 345
clear_cScT 330
RecCoeff3 300
chk_reccoeff_init 300
qfbforms 295
quadhilbertimag 295
GetST 285
GenusFieldQuadImag 280
chk_reccoeff 235
FindModulus 225
CplxModulus 225
get_listCR 225
init_cScT 205
ppgamma 205
GCD24 186
hasexp2 186
mpvecpowdiv 185
QuadGetST 180
get_subgroup 180
an_set0 170
InitPrimesQuad 160
get_prdiff 150
bnrstark 145
GetST0 125
quadhilbertreal 100
makescind 90
split_pol_quad 90
quadray 75
get_lambda 45
isZ 45
getallelts 45
computeP2 45
findbezk_pol 45
treatspecialsigma 45
getallrootsof1 45
bnrL1 40
deg0 35
CharNewPrec 25
GetValue1 15
init_pq 15
GenusFieldQuadReal 10
bnrrootnumber 5
SingleArtinNumber 5
galoisapplypol 0
get_prec 0
findquad_pol 0
compocyclo 0
findquad 0
do_compo 0
form_to_ideal 0

Generated by: LCOV version 1.9