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