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.1 lcov report (development 28676-df828f1c94) Lines: 1218 1257 96.9 %
Date: 2023-08-26 07:54:43 Functions: 139 139 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
BAD2small 91
E2exp 924
Efuneq 36876
F2v_factorback 693
Flv_inv_p2 33930
Flv_red 609
Jordantame 77
Jordantameexpo 91
L0 614870
QV_normalize 1204
Q_krois 28419
RgV_addhalf 273
RgV_mirror 104139
RgXn_sqrtnu 42
al2cyE 1400
albe2u 231
allprims 843850
binomfact 116948
block0 97
checkhgm 1281
compu 2155
count2list 14
cyE_intersect 700
cycloE2cyclo 7
cyclodiscmodsq 126
cyclowt 103670
dirhgm_worker 3994
discprod 231
doprecomp 3667
doprecompmodp2 33932
eulfactameinit 105
forvecsort 98
frobpoltrunc 36947
gacfac 385
gapnpow 984447
get_CYCLOE 700
get_GF 33932
get_GH 33927
get_L0 33965
get_L1 37596
get_VPOLGA 693
get_achi 98
get_b1 959
get_dfp 37835
get_pad 3660
get_teich 3661
get_teich1 2947
get_u 462
gkgauss 3612
hgmC 235084
hgmCall 3667
hgmCallmodp2 33937
hgmCmodp2 16401719
hgmG 1428
hgmH 3850
hgmHmodp2 33926
hgmQ 1428
hgmU 231
hgm_get_BAD 37827
hgm_get_CYCLOE 1582
hgm_get_DEG 141696
hgm_get_HODGE 109712
hgm_get_MVALUE 623
hgm_get_OFFMPOL 652497
hgm_get_SIGNPAR 28629
hgm_get_SWAP 672
hgm_get_TT 76970
hgm_get_U 2939
hgm_get_U0 63
hgm_get_VAL 141729
hgm_get_VBE 35
hgm_get_VBEDEN 37596
hgm_get_VBENUM 37596
hgm_get_VPOLGA 687876
hgm_get_WT 109348
hgmalpha 21
hgmalphatogamma 231
hgmbydegree 21
hgmcharcond 245
hgmclass 37624
hgmcoef 84
hgmcoefs 399
hgmcyclo 7
hgmcyclotoalpha 103978
hgmeulerfactor 441
hgmeulerfactorlimit 37253
hgmfindvga 203
hgmgamma 21
hgmgammatoalpha 21
hgmgammatocyclo 21
hgminit 511
hgminit_i 511
hgmissymmetrical 7
hgmlfuninfty 203
hgmmodif 227731
hgmmoments 91
hgmmulti 2856
hgmparams 161
hgmsign 33934
hgmtrace 37793
hgmtwist 21
hodge 104139
initab 504
inv 3850
lfundivraw 35
lfunhgm 119
lfunhgm_i 112
lfunhgmispole 91
lfunhgmwild 98
listcond 98
listweil_i 1610
listweilallw_i 490
mangoldtexp 1344
mkal 182
mkalbe 21
mkallal 21
mkphi 21
mkpowers 36874
moebiusadd 10472
mul 35
ok_part 378
pari_close_hgm 311044
pari_init_hgm 315896
powers_u 36874
precomp 2162
primedivisors 609
remove_intersect 231
removebad 217
sumbinom 116948
sumdeg 127344
tag 112
tameexpo 14
teichmodp2 33935
umultop 203896
upowers_u 364
vecmellin 1708
zv_intersect 554932
zv_sumeuler 35
zv_to_prims 207956

Generated by: LCOV version 1.14