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 to exceed 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.16.1 lcov report (development 28676-df828f1c94) Lines: 1660 1786 92.9 %
Date: 2023-08-26 07:54:43 Functions: 127 129 98.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
bnrstark_cyclic 0
get_prec 0
GenusFieldQuadReal 14
compocyclop 14
findquad_pol 14
galoisapplypol 14
GetValue1 35
compocyclo 35
deg0 42
do_compo 49
init_pq 49
bnrL1 70
computeP2 70
findbezk_pol 70
findquad 70
get_lambda 70
getallelts 70
getallrootsof1 70
bnrrootnumber 77
isZ 119
treatspecialsigma 119
makescind 133
split_pol_quad 133
an_set0 140
quadhilbertreal 147
get_prdiff 161
quadray 161
GetST0 189
get_i0 189
zeta_get_i0 189
bnrstark 203
InitPrimesQuad 224
QuadGetST 259
mpvecpowdiv 259
init_cScT 308
ppgamma 308
CplxModulus 322
FindModulus 322
subgroup_classes 322
CharNewPrec 350
InitChar 385
sortChars 385
AllChars 392
GenusFieldQuadImag 406
GetST 413
chk_reccoeff 425
ComputeKernel 448
ST_alloc 448
abmap_kernel 448
divcond 448
qfbforms 455
RecCoeff3 461
chk_reccoeff_init 461
quadhilbertimag 462
clear_cScT 497
deg11 504
InitPrimes 511
zeta_get_limx 511
IsGoodSubgroup 518
_data3 532
subgp_intersect 567
quadhilbert 574
RecCoeff 595
zeta_get_N0 630
AllStark 644
AllArtinNumbers 735
get_C 735
get_ilambda 812
GCD24 813
hasexp2 813
computean 833
quadray_init 847
ArtinNumber 1015
L_vanishes_at_0 1029
cyc_is_cyclic 1169
InitQuotient 1302
uhasexp2 1323
GetValue 1393
ch_deg 1393
abmap_subgroup_image 1434
ComputeCoeff 1589
init_CHI_C 1631
ch_get3 1701
eval_i 1897
RecCoeff2 2065
AChi 2184
CorrectCoeff 2422
InitReduction 2422
TestOne 2508
init_CHI_alg 2597
LiftChar 3465
get_Char 3899
gpq 4102
InitMatAn 4186
init_CHI 4228
computeth2 4354
ellphistinit 4354
get_om 4354
findbezk 4424
FreeMat 6608
ellphist 8708
to_approx 8778
CharEval 15288
CharEval_n 15344
chi_get_c 19572
deg12 32142
deg2 34039
cyc2elts 42364
chi_get_deg 56539
d2 103854
an_set0_coprime 133310
an_mul 149140
CopyCoeff 310912
an_AddMul 310912
d1 311618
Polmod2Coeff 394440
_sercoeff 406524
affect_coeff 406524
get_cS_cT 500087
NextElt 693091
CHI_eval 697351
CHI_eval_n 699164
_0toCoeff 1368550
MulCoeff 2118883
EvalCoeff 3764622
AddMulCoeff 5455425
IsZero 7574308
_addmulrr 49039438
_addrr 99843892

Generated by: LCOV version 1.14