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 19834-0e97742) Lines: 1813 1949 93.0 %
Date: 2016-12-09 05:49:11 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 21
compocyclo 49
do_compo 49
init_pq 49
bnrL1 63
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 182
get_i0 182
zeta_get_i0 182
bnrstark 203
get_prdiff 210
InitPrimesQuad 217
QuadGetST 252
mpvecpowdiv 252
get_subgroup 259
an_set0 280
init_cScT 294
ppgamma 294
CplxModulus 322
FindModulus 322
get_listCR 322
divcond 336
cyc2elts 371
GetST 399
GenusFieldQuadImag 406
ComputeKernel 420
ComputeKernel0 420
deg11 420
qfbforms 455
quadhilbertimag 462
clear_cScT 476
RecCoeff3 503
chk_reccoeff_init 503
InitPrimes 504
zeta_get_limx 504
chk_reccoeff 530
quadhilbert 574
RecCoeff 581
zeta_get_N0 616
AllStark 644
IsGoodSubgroup 644
ComputeLift 665
subgp_intersect 693
InitChar 700
sortChars 700
ComputeAllArtinNumbers 721
computean 791
get_ilambda 798
GCD24 813
hasexp2 813
quadray_init 847
_data4 889
ArtinNumber 994
EltsOfGroup 1043
GetDeg 1078
cyc_is_cyclic 1295
uhasexp2 1323
GetValue 1337
init_CHI_C 1533
ComputeCoeff 1596
RecCoeff2 2030
InitQuotient 2058
ComputeAChi 2163
L_vanishes_at_0 2177
LiftChar 2317
_cond 2324
CorrectCoeff 2387
InitReduction 2387
TestOne 2505
init_CHI_alg 2562
get_Char 2828
ch_deg 3647
init_CHI 4095
gpq 4102
InitMatAn 4158
computeth2 4354
ellphistinit 4354
get_om 4354
findbezk 4424
FreeMat 6545
ellphist 8708
to_approx 8778
CharEval 14735
CharEval_n 14868
chi_get_c 18963
deg12 32199
deg2 34116
chi_get_deg 58338
chi_get_gdeg 58338
NextElt 70203
an_set0_coprime 125225
an_mul 137187
CopyCoeff 317674
an_AddMul 317674
_sercoeff 328440
affect_coeff 328440
Polmod2Coeff 383425
get_cS_cT 503195
next_pow 611978
CHI_eval 677602
CHI_eval_n 679394
_0toCoeff 1506138
MulCoeff 1803378
EvalCoeff 3701998
AddMulCoeff 5404819
IsZero 7208197
_addmulrr 49382186
_addrr 99692166

Generated by: LCOV version 1.11