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 19825-b77c7f8) Lines: 1813 1949 93.0 %
Date: 2016-12-05 05:49:04 Functions: 126 127 99.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
AddMulCoeff 5404819
AllStark 644
ArtinNumber 994
CHI_eval 677602
CHI_eval_n 679394
CharEval 14735
CharEval_n 14868
CharNewPrec 21
ComputeAChi 2163
ComputeAllArtinNumbers 721
ComputeCoeff 1596
ComputeKernel 420
ComputeKernel0 420
ComputeLift 665
CopyCoeff 317674
CorrectCoeff 2387
CplxModulus 322
EltsOfGroup 1043
EvalCoeff 3701998
FindModulus 322
FreeMat 6545
GCD24 813
GenusFieldQuadImag 406
GenusFieldQuadReal 14
GetDeg 1078
GetST 399
GetST0 182
GetValue 1337
GetValue1 21
InitChar 700
InitMatAn 4158
InitPrimes 504
InitPrimesQuad 217
InitQuotient 2058
InitReduction 2387
IsGoodSubgroup 644
IsZero 7208197
L_vanishes_at_0 2177
LiftChar 2317
MulCoeff 1803378
NextElt 70203
Polmod2Coeff 383425
QuadGetST 252
RecCoeff 581
RecCoeff2 2030
RecCoeff3 503
SingleArtinNumber 77
TestOne 2505
_0toCoeff 1506138
_addmulrr 49382186
_addrr 99692166
_cond 2324
_data4 889
_sercoeff 328440
affect_coeff 328440
an_AddMul 317674
an_mul 137187
an_set0 280
an_set0_coprime 125225
bnrL1 63
bnrrootnumber 77
bnrstark 203
ch_deg 3647
chi_get_c 18963
chi_get_deg 58338
chi_get_gdeg 58338
chk_reccoeff 530
chk_reccoeff_init 503
clear_cScT 476
compocyclo 49
computeP2 70
computean 791
computeth2 4354
cyc2elts 371
cyc_is_cyclic 1295
deg0 70
deg11 420
deg12 32199
deg2 34116
divcond 336
do_compo 49
ellphist 8708
ellphistinit 4354
findbezk 4424
findbezk_pol 70
findquad 70
findquad_pol 14
galoisapplypol 14
get_Char 2828
get_cS_cT 503195
get_i0 182
get_ilambda 798
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 4095
init_CHI_C 1533
init_CHI_alg 2562
init_cScT 294
init_pq 49
isZ 119
makescind 133
mpvecpowdiv 252
next_pow 611978
ppgamma 294
qfbforms 455
quadhilbert 574
quadhilbertimag 462
quadhilbertreal 147
quadray 161
quadray_init 847
sortChars 700
split_pol_quad 133
subgp_intersect 693
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