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 18898-50fc0a2) Lines: 1806 1942 93.0 %
Date: 2016-05-04 Functions: 125 127 98.4 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 915 1173 78.0 %

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

Generated by: LCOV version 1.9