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 to exceed 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.12.0 lcov report (development 23344-f0cc1b3f6) Lines: 1806 1940 93.1 %
Date: 2018-12-12 05:41:43 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 14
findquad_pol 14
galoisapplypol 14
CharNewPrec 21
GetValue1 28
compocyclo 49
do_compo 49
init_pq 49
bnrL1 70
computeP2 70
deg0 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
quadhilbertreal 147
quadray 161
GetST0 189
get_i0 189
zeta_get_i0 189
bnrstark 203
InitPrimesQuad 217
get_prdiff 217
QuadGetST 252
mpvecpowdiv 252
get_subgroup 266
an_set0 280
init_cScT 308
ppgamma 308
CplxModulus 322
FindModulus 322
get_listCR 322
divcond 343
chk_reccoeff 348
GenusFieldQuadImag 406
GetST 406
RecCoeff3 412
chk_reccoeff_init 412
ComputeKernel 420
ComputeKernel0 420
deg11 420
qfbforms 455
quadhilbertimag 462
clear_cScT 497
InitPrimes 511
zeta_get_limx 511
quadhilbert 574
RecCoeff 581
zeta_get_N0 630
AllStark 644
IsGoodSubgroup 644
ComputeLift 665
subgp_intersect 693
InitChar 707
sortChars 707
ComputeAllArtinNumbers 728
computean 791
get_ilambda 805
GCD24 813
hasexp2 813
quadray_init 847
_data4 903
ArtinNumber 1008
EltsOfGroup 1050
GetDeg 1085
cyc_is_cyclic 1295
uhasexp2 1323
GetValue 1351
init_CHI_C 1540
ComputeCoeff 1610
eval_i 1897
RecCoeff2 2030
InitQuotient 2065
ComputeAChi 2163
L_vanishes_at_0 2177
TestOne 2331
LiftChar 2338
_cond 2338
CorrectCoeff 2401
InitReduction 2401
init_CHI_alg 2576
get_Char 2849
ch_deg 3661
gpq 4102
init_CHI 4116
InitMatAn 4186
computeth2 4354
ellphistinit 4354
get_om 4354
findbezk 4424
FreeMat 6587
ellphist 8708
to_approx 8778
CharEval 14735
CharEval_n 14868
chi_get_c 18984
deg12 32199
deg2 34116
cyc2elts 39753
chi_get_deg 58415
chi_get_gdeg 58415
an_set0_coprime 125225
an_mul 137187
CopyCoeff 317772
an_AddMul 317772
NextElt 359674
Polmod2Coeff 383551
_sercoeff 406524
affect_coeff 406524
get_cS_cT 503419
CHI_eval 677707
CHI_eval_n 679506
_0toCoeff 1506138
MulCoeff 1803378
EvalCoeff 3702276
AddMulCoeff 5405263
IsZero 7208641
_addmulrr 49382634
_addrr 100525286

Generated by: LCOV version 1.13