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

Generated by: LCOV version 1.9