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-04-29 05:33:44 Functions: 126 127 99.2 %
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.11