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.18.0 lcov report (development 29712-7c8a932571) Lines: 1682 1817 92.6 %
Date: 2024-11-15 09:08:45 Functions: 128 130 98.5 %
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
bnrstarkunit 14
compocyclop 14
findquad_pol 14
galoisapplypol 14
GetValue1 35
compocyclo 35
deg0 35
do_compo 49
init_pq 49
bnrL1 70
computeP2 70
findbezk_pol 70
findquad 70
get_lambda 70
getallelts 70
getallrootsof1 70
bnrrootnumber 77
an_set0 105
isZ 119
treatspecialsigma 119
makescind 133
split_pol_quad 133
quadhilbertreal 147
get_prdiff 161
quadray 161
GetST0 189
get_i0 189
zeta_get_i0 189
InitPrimesQuad 203
bnrstark 203
mpvecpowdiv 231
QuadGetST 238
init_cScT 308
ppgamma 308
CharNewPrec 322
FindModulus 322
CplxModulus 329
subgroup_classes 329
chk_reccoeff 390
GetST 392
InitChar 392
sortChars 392
AllChars 399
GenusFieldQuadImag 406
RecCoeff3 412
chk_reccoeff_init 412
ST_alloc 427
deg11 441
divcond 448
ComputeKernel 455
abmap_kernel 455
qfbforms 455
quadhilbertimag 462
clear_cScT 497
InitPrimes 518
IsGoodSubgroup 518
zeta_get_limx 518
_data3 539
RecCoeff 546
subgp_intersect 567
quadhilbert 574
zeta_get_N0 637
AllStark 658
get_P 714
AllArtinNumbers 721
computean 735
get_ilambda 798
GCD24 813
hasexp2 813
quadray_init 847
ArtinNumber 994
L_vanishes_at_0 1071
cyc_is_cyclic 1169
GetValue 1295
ch_deg 1295
InitQuotient 1316
uhasexp2 1323
abmap_subgroup_image 1519
init_CHI_C 1596
ch_get3 1603
ComputeCoeff 1631
eval_i 1897
AChi 2128
RecCoeff2 2156
CorrectCoeff 2366
InitReduction 2366
init_CHI_alg 2534
TestOne 2564
LiftChar 3612
get_Char 3661
gpq 4102
init_CHI 4130
InitMatAn 4165
computeth2 4354
ellphistinit 4354
get_om 4354
findbezk 4424
FreeMat 6531
ellphist 8708
to_approx 8778
CharEval 14707
CharEval_n 14763
chi_get_c 18893
deg12 24659
deg2 26629
cyc2elts 44751
chi_get_deg 54488
an_set0_coprime 100787
d2 105282
an_mul 111303
d1 315902
CopyCoeff 357308
an_AddMul 357308
Polmod2Coeff 397879
_sercoeff 412236
affect_coeff 412236
get_cS_cT 521409
CHI_eval 643227
CHI_eval_n 644963
NextElt 684019
_0toCoeff 1001821
MulCoeff 1511799
EvalCoeff 3661174
AddMulCoeff 6149930
IsZero 7661729
_addmulrr 51886310
_addrr 105518127

Generated by: LCOV version 1.16