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 16375-9f41ae0) Lines: 1787 1986 90.0 %
Date: 2014-04-19 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 9244849
AllStark 630
ArtinNumber 819
CharNewPrec 7
ComputeAChi 2079
ComputeAllArtinNumbers 679
ComputeCoeff 1484
ComputeImagebyChar 14399
ComputeKernel 483
ComputeKernel0 483
ComputeLift 637
ConjChar 868
CopyCoeff 461994
CorrectCoeff 2212
CplxModulus 315
EltsOfGroup 994
EvalChar 837538
EvalChar_n 839106
EvalCoeff 5089558
FindModulus 315
FreeMat 6013
GCD24 260
GenusFieldQuadImag 392
GenusFieldQuadReal 14
GetDeg 1015
GetPrimChar 2198
GetST 364
GetST0 168
GetValue 1183
GetValue1 42
InitChar 672
InitMatAn 3801
InitPrimes 483
InitPrimesQuad 196
InitQuotient 2541
InitRU 3164
InitReduction 2212
IsGoodSubgroup 1093
IsZero 11286515
L_vanishes_at_0 2093
LiftChar 2079
MulCoeff 2041666
NextElt 52976
Order 1091
PiBound 679
Polmod2Coeff 496831
QuadGetST 217
RecCoeff 546
RecCoeff2 2023
RecCoeff3 409
SingleArtinNumber 7
TestOne 2484
_0toCoeff 1377514
_addmulrr 122196782
_addrr 243793248
_cond 2191
_data4 812
_sercoeff 290996
affect_coeff 290996
an_AddMul 461994
an_mul 144230
an_set0 147
an_set0_coprime 128771
bnrL1 49
bnrrootnumber 7
bnrstark 203
chk_reccoeff 356
chk_reccoeff_init 416
clear_cScT 392
compocyclo 0
computeP2 63
computean 728
computeth2 4207
deg0 35
deg11 471
deg12 29369
deg2 30770
divcond 840
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 2394
get_cS_cT 858497
get_chic 2394
get_lambda 63
get_listCR 315
get_om 4207
get_prdiff 154
get_prec 0
get_subgroup 245
getallelts 63
getallrootsof1 63
gpq 3892
hasexp2 260
init_CHI 3731
init_CHI_C 1414
init_CHI_alg 2317
init_cScT 224
init_get_chic 875
init_pq 21
isZ 63
makescind 126
mpvecpowdiv 224
next_pow 769169
ppgamma 224
qfbforms 413
quadhilbert 567
quadhilbertimag 413
quadhilbertreal 140
quadray 105
quadray_init 777
sortChars 672
split_pol_quad 126
to_approx 8477
treatspecialsigma 63
uhasexp2 1274

Generated by: LCOV version 1.9