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 17097-9391e68) Lines: 1848 1984 93.1 %
Date: 2014-11-21 Functions: 119 121 98.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 931 1187 78.4 %

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

Generated by: LCOV version 1.9