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 16861-9aeb453) Lines: 1791 1987 90.1 %
Date: 2014-10-08 Functions: 115 122 94.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 889 1193 74.5 %

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 8477
ellphist 8414
FreeMat 6636
findbezk 4270
ellphistinit 4207
computeth2 4207
get_om 4207
InitMatAn 4186
init_CHI 4179
gpq 3892
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 1274
IsGoodSubgroup 1092
Order 1092
GetDeg 1057
EltsOfGroup 1029
ConjChar 973
divcond 959
init_get_chic 959
ArtinNumber 917
computean 889
_data4 868
quadray_init 777
ComputeAllArtinNumbers 714
PiBound 714
InitChar 679
sortChars 679
ComputeLift 665
AllStark 630
RecCoeff 602
quadhilbert 567
deg11 490
InitPrimes 490
ComputeKernel0 483
ComputeKernel 483
clear_cScT 462
RecCoeff3 420
chk_reccoeff_init 420
qfbforms 413
quadhilbertimag 413
GetST 399
GenusFieldQuadImag 392
chk_reccoeff 329
FindModulus 315
CplxModulus 315
get_listCR 315
init_cScT 287
ppgamma 287
GCD24 260
hasexp2 260
mpvecpowdiv 259
QuadGetST 252
get_subgroup 252
an_set0 238
InitPrimesQuad 224
get_prdiff 210
bnrstark 203
GetST0 175
quadhilbertreal 140
makescind 126
split_pol_quad 126
quadray 105
get_lambda 63
isZ 63
getallelts 63
computeP2 63
findbezk_pol 63
treatspecialsigma 63
getallrootsof1 63
bnrL1 56
deg0 49
CharNewPrec 35
GetValue1 21
init_pq 21
GenusFieldQuadReal 14
bnrrootnumber 7
SingleArtinNumber 7
galoisapplypol 0
get_prec 0
findquad_pol 0
compocyclo 0
findquad 0
do_compo 0
form_to_ideal 0

Generated by: LCOV version 1.9