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 - basemath - hgm.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.16.2 lcov report (development 29115-f22e516b23) Lines: 1218 1257 96.9 %
Date: 2024-05-02 08:08:24 Functions: 139 139 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
cycloE2cyclo 7
hgmcyclo 7
hgmissymmetrical 7
count2list 14
tameexpo 14
hgmalpha 21
hgmbydegree 21
hgmgamma 21
hgmgammatoalpha 21
hgmgammatocyclo 21
hgmtwist 21
mkalbe 21
mkallal 21
mkphi 21
hgm_get_VBE 35
lfundivraw 35
mul 35
zv_sumeuler 35
RgXn_sqrtnu 42
hgm_get_U0 63
Jordantame 77
hgmcoef 84
BAD2small 91
Jordantameexpo 91
hgmmoments 91
lfunhgmispole 91
block0 97
forvecsort 98
get_achi 98
lfunhgmwild 98
listcond 98
eulfactameinit 105
lfunhgm_i 112
tag 112
lfunhgm 119
cyclodiscmodsq 126
hgmparams 161
mkal 182
hgmfindvga 203
hgmlfuninfty 203
removebad 217
albe2u 231
discprod 231
hgmU 231
hgmalphatogamma 231
remove_intersect 231
hgmcharcond 245
RgV_addhalf 273
upowers_u 364
ok_part 378
gacfac 385
hgmcoefs 399
hgmeulerfactor 441
get_u 462
listweilallw_i 490
initab 504
hgminit 511
hgminit_i 511
Flv_red 609
primedivisors 609
hgm_get_MVALUE 623
hgm_get_SWAP 672
F2v_factorback 693
get_VPOLGA 693
cyE_intersect 700
get_CYCLOE 700
E2exp 924
get_b1 959
QV_normalize 1204
checkhgm 1281
mangoldtexp 1344
al2cyE 1400
hgmG 1428
hgmQ 1428
hgm_get_CYCLOE 1582
listweil_i 1610
vecmellin 1708
compu 2155
precomp 2162
hgmmulti 2856
hgm_get_U 2940
get_teich1 2947
gkgauss 3612
get_pad 3661
get_teich 3661
doprecomp 3668
hgmCall 3668
hgmH 3850
inv 3850
dirhgm_worker 3995
moebiusadd 10472
Q_krois 28417
hgm_get_SIGNPAR 28627
get_GH 33926
hgmHmodp2 33929
hgmsign 33932
Flv_inv_p2 33934
doprecompmodp2 33934
get_GF 33934
teichmodp2 33935
hgmCallmodp2 33939
get_L0 33965
Efuneq 36873
powers_u 36873
mkpowers 36874
frobpoltrunc 36948
hgmeulerfactorlimit 37258
get_L1 37596
hgm_get_VBEDEN 37596
hgm_get_VBENUM 37596
hgmclass 37630
hgmtrace 37796
hgm_get_BAD 37833
get_dfp 37838
hgm_get_TT 76964
cyclowt 103670
hgmcyclotoalpha 103978
RgV_mirror 104139
hodge 104139
hgm_get_WT 109350
hgm_get_HODGE 109712
binomfact 116948
sumbinom 116948
sumdeg 127344
hgm_get_DEG 141702
hgm_get_VAL 141737
umultop 203894
zv_to_prims 207956
hgmmodif 227731
hgmC 235083
pari_close_hgm 312875
pari_init_hgm 318137
zv_intersect 554932
L0 614866
hgm_get_OFFMPOL 652496
hgm_get_VPOLGA 687872
allprims 843850
gapnpow 984439
hgmCmodp2 16416906

Generated by: LCOV version 1.14