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 16937-4bd9b4e) Lines: 1795 1987 90.3 %
Date: 2014-10-24 Functions: 115 122 94.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 893 1193 74.9 %

Function Name Sort by function name Hit count Sort by hit count
AddMulCoeff 5437705
AllStark 630
ArtinNumber 924
CharNewPrec 42
ComputeAChi 2275
ComputeAllArtinNumbers 721
ComputeCoeff 1561
ComputeImagebyChar 16583
ComputeKernel 483
ComputeKernel0 483
ComputeLift 672
ConjChar 973
CopyCoeff 310016
CorrectCoeff 2485
CplxModulus 315
EltsOfGroup 1036
EvalChar 744810
EvalChar_n 746623
EvalCoeff 3997220
FindModulus 315
FreeMat 6706
GCD24 260
GenusFieldQuadImag 392
GenusFieldQuadReal 14
GetDeg 1064
GetPrimChar 2275
GetST 406
GetST0 175
GetValue 1456
GetValue1 21
InitChar 679
InitMatAn 4221
InitPrimes 490
InitPrimesQuad 231
InitQuotient 2548
InitRU 3780
InitReduction 2485
IsGoodSubgroup 1092
IsZero 7728740
L_vanishes_at_0 2289
LiftChar 2184
MulCoeff 2291035
NextElt 65863
Order 1092
PiBound 721
Polmod2Coeff 406063
QuadGetST 259
RecCoeff 616
RecCoeff2 2093
RecCoeff3 599
SingleArtinNumber 7
TestOne 2640
_0toCoeff 1594560
_addmulrr 48816222
_addrr 98573090
_cond 2268
_data4 868
_sercoeff 315588
affect_coeff 315588
an_AddMul 310016
an_mul 166673
an_set0 238
an_set0_coprime 151388
bnrL1 56
bnrrootnumber 7
bnrstark 203
chk_reccoeff 659
chk_reccoeff_init 606
clear_cScT 462
compocyclo 0
computeP2 63
computean 924
computeth2 4207
deg0 49
deg11 525
deg12 31583
deg2 33859
divcond 966
do_compo 0
ellphist 8414
ellphistinit 4207
findbezk 4270
findbezk_pol 63
findquad 0
findquad_pol 0
form_to_ideal 0
galoisapplypol 0
get_Char 2548
get_cS_cT 498435
get_chic 2548
get_lambda 63
get_listCR 315
get_om 4207
get_prdiff 210
get_prec 0
get_subgroup 252
getallelts 63
getallrootsof1 63
gpq 3892
hasexp2 260
init_CHI 4235
init_CHI_C 1575
init_CHI_alg 2660
init_cScT 287
init_get_chic 959
init_pq 21
isZ 63
makescind 126
mpvecpowdiv 266
next_pow 660760
ppgamma 287
qfbforms 413
quadhilbert 567
quadhilbertimag 413
quadhilbertreal 140
quadray 105
quadray_init 777
sortChars 679
split_pol_quad 126
to_approx 8477
treatspecialsigma 63
uhasexp2 1274

Generated by: LCOV version 1.9