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 19374-ac31b96) Lines: 1806 1949 92.7 %
Date: 2016-08-30 06:11:37 Functions: 125 127 98.4 %
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.11