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.8.0 lcov report (development 19623-dc26710) Lines: 1807 1945 92.9 %
Date: 2016-09-30 05:54:20 Functions: 125 126 99.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
get_prec 0
GenusFieldQuadReal 14
findquad_pol 14
galoisapplypol 14
GetValue1 21
CharNewPrec 28
deg0 42
compocyclo 49
do_compo 49
init_pq 49
bnrL1 63
computeP2 70
findbezk_pol 70
findquad 70
get_lambda 70
getallelts 70
getallrootsof1 70
SingleArtinNumber 77
bnrrootnumber 77
isZ 119
treatspecialsigma 119
makescind 133
split_pol_quad 133
an_set0 147
quadhilbertreal 147
quadray 161
GetST0 182
get_i0 182
zeta_get_i0 182
bnrstark 203
get_prdiff 210
InitPrimesQuad 224
QuadGetST 259
get_subgroup 259
mpvecpowdiv 259
init_cScT 294
ppgamma 294
CplxModulus 322
FindModulus 322
get_listCR 322
cyc2elts 357
GenusFieldQuadImag 406
GetST 406
chk_reccoeff 427
ComputeKernel 448
ComputeKernel0 448
qfbforms 455
RecCoeff3 462
chk_reccoeff_init 462
quadhilbertimag 462
clear_cScT 476
InitPrimes 504
deg11 504
zeta_get_limx 504
IsGoodSubgroup 560
quadhilbert 574
RecCoeff 595
subgp_intersect 595
zeta_get_N0 616
AllStark 644
ComputeLift 672
InitChar 700
sortChars 700
ComputeAllArtinNumbers 728
GCD24 813
hasexp2 813
computean 840
quadray_init 847
_data4 889
ArtinNumber 1001
EltsOfGroup 1050
GetDeg 1085
divcond 1127
cyc_is_cyclic 1211
uhasexp2 1323
GetValue 1386
ComputeCoeff 1582
init_CHI_C 1610
InitQuotient 1974
RecCoeff2 2065
ComputeAChi 2198
L_vanishes_at_0 2212
LiftChar 2226
_cond 2296
CorrectCoeff 2422
InitReduction 2422
TestOne 2493
init_CHI_alg 2597
get_Char 2926
ch_deg 3668
gpq 4102
InitMatAn 4179
init_CHI 4207
computeth2 4354
ellphistinit 4354
get_om 4354
findbezk 4424
FreeMat 6601
ellphist 8708
to_approx 8778
CharEval 15344
CharEval_n 15463
chi_get_c 19670
deg12 32114
deg2 34004
chi_get_deg 60410
chi_get_gdeg 60410
NextElt 70714
an_set0_coprime 134738
an_mul 150638
CopyCoeff 311248
an_AddMul 311248
_sercoeff 328440
affect_coeff 328440
Polmod2Coeff 395672
get_cS_cT 499863
next_pow 629741
CHI_eval 701796
CHI_eval_n 703581
_0toCoeff 1397705
MulCoeff 2135158
EvalCoeff 3787955
AddMulCoeff 5458306
IsZero 7593464
_addmulrr 49038990
_addrr 99010772

Generated by: LCOV version 1.11