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-bordeaux.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.10.0 lcov report (development 20459-9710128) Lines: 1806 1947 92.8 %
Date: 2017-03-30 05:32:39 Functions: 126 127 99.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
AddMulCoeff 4632702
AllStark 552
ArtinNumber 852
CHI_eval 578778
CHI_eval_n 580314
CharEval 12630
CharEval_n 12744
CharNewPrec 18
ComputeAChi 1854
ComputeAllArtinNumbers 618
ComputeCoeff 1368
ComputeKernel 360
ComputeKernel0 360
ComputeLift 570
CopyCoeff 272292
CorrectCoeff 2046
CplxModulus 276
EltsOfGroup 894
EvalCoeff 3162726
FindModulus 276
FreeMat 5610
GCD24 696
GenusFieldQuadImag 348
GenusFieldQuadReal 12
GetDeg 924
GetST 342
GetST0 156
GetValue 1146
GetValue1 18
InitChar 600
InitMatAn 3564
InitPrimes 432
InitPrimesQuad 186
InitQuotient 1764
InitReduction 2046
IsGoodSubgroup 552
IsZero 6166710
L_vanishes_at_0 1866
LiftChar 1986
MulCoeff 1534008
NextElt 60198
Polmod2Coeff 328026
QuadGetST 216
RecCoeff 498
RecCoeff2 1740
RecCoeff3 354
SingleArtinNumber 66
TestOne 2004
_0toCoeff 1279788
_addmulrr 42327588
_addrr 85450428
_cond 1992
_data4 762
_sercoeff 281520
affect_coeff 281520
an_AddMul 272292
an_mul 116934
an_set0 240
an_set0_coprime 106584
bnrL1 54
bnrrootnumber 66
bnrstark 174
ch_deg 3126
chi_get_c 16254
chi_get_deg 50004
chi_get_gdeg 50004
chk_reccoeff 300
chk_reccoeff_init 354
clear_cScT 408
compocyclo 42
computeP2 60
computean 678
computeth2 3732
cyc2elts 342
cyc_is_cyclic 1110
deg0 60
deg11 360
deg12 27408
deg2 29010
divcond 288
do_compo 42
ellphist 7464
ellphistinit 3732
findbezk 3792
findbezk_pol 60
findquad 60
findquad_pol 12
galoisapplypol 12
get_Char 2424
get_cS_cT 431310
get_i0 156
get_ilambda 684
get_lambda 60
get_listCR 276
get_om 3732
get_prdiff 180
get_prec 0
get_subgroup 222
getallelts 60
getallrootsof1 60
gpq 3516
hasexp2 696
init_CHI 3510
init_CHI_C 1314
init_CHI_alg 2196
init_cScT 252
init_pq 42
isZ 102
makescind 114
mpvecpowdiv 216
next_pow 523146
ppgamma 252
qfbforms 390
quadhilbert 492
quadhilbertimag 396
quadhilbertreal 126
quadray 138
quadray_init 726
sortChars 600
split_pol_quad 114
subgp_intersect 594
to_approx 7524
treatspecialsigma 102
uhasexp2 1134
zeta_get_N0 528
zeta_get_i0 156
zeta_get_limx 432

Generated by: LCOV version 1.11