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-bordeaux1.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 17236-ec2ebc9) Lines: 1849 1983 93.2 %
Date: 2014-12-19 Functions: 119 121 98.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 935 1187 78.8 %

Function Name Sort by function name Hit count Sort by hit count
AddMulCoeff 5437705
AllStark 630
ArtinNumber 917
CharNewPrec 35
ComputeAChi 2240
ComputeAllArtinNumbers 714
ComputeCoeff 1561
ComputeImagebyChar 16303
ComputeKernel 483
ComputeKernel0 483
ComputeLift 665
ConjChar 973
CopyCoeff 310016
CorrectCoeff 2450
CplxModulus 315
EltsOfGroup 1029
EvalChar 792579
EvalChar_n 794350
EvalCoeff 4268295
FindModulus 315
FreeMat 6636
GCD24 813
GenusFieldQuadImag 406
GenusFieldQuadReal 14
GetDeg 1057
GetPrimChar 2275
GetST 399
GetST0 175
GetValue 1421
GetValue1 21
InitChar 679
InitMatAn 4186
InitPrimes 490
InitPrimesQuad 224
InitQuotient 2548
InitRU 3703
InitReduction 2450
IsGoodSubgroup 1092
IsZero 8062506
L_vanishes_at_0 2254
LiftChar 2184
MulCoeff 2624801
NextElt 65758
Order 1092
Polmod2Coeff 421761
QuadGetST 252
RecCoeff 602
RecCoeff2 2044
RecCoeff3 420
SingleArtinNumber 7
TestOne 2381
_0toCoeff 1946631
_addmulrr 48816222
_addrr 98573090
_cond 2268
_data4 868
_sercoeff 315588
affect_coeff 315588
an_AddMul 310016
an_mul 183188
an_set0 238
an_set0_coprime 165335
bnrL1 56
bnrrootnumber 7
bnrstark 203
chk_reccoeff 329
chk_reccoeff_init 420
clear_cScT 462
compocyclo 49
computeP2 70
computean 889
computeth2 4354
deg0 49
deg11 490
deg12 34886
deg2 36678
divcond 959
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 2548
get_cS_cT 498435
get_chic 2548
get_lambda 70
get_listCR 315
get_om 4354
get_prdiff 210
get_prec 0
get_subgroup 252
getallelts 70
getallrootsof1 70
gpq 4102
hasexp2 813
init_CHI 4179
init_CHI_C 1554
init_CHI_alg 2625
init_cScT 287
init_get_chic 959
init_pq 49
isZ 119
makescind 126
mpvecpowdiv 259
next_pow 691222
ppgamma 287
qfbforms 455
quadhilbert 567
quadhilbertimag 462
quadhilbertreal 140
quadray 161
quadray_init 833
sortChars 679
split_pol_quad 126
to_approx 8778
treatspecialsigma 119
uhasexp2 1323

Generated by: LCOV version 1.9