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 - base3.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.0 lcov report (development 29806-4d001396c7) Lines: 2061 2170 95.0 %
Date: 2024-12-21 09:08:57 Functions: 227 238 95.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
idealstar0 0
nfM_ker 0
nfembed 0
sprk_get_AgL2 0
tablemul 0
zidealstar 0
zidealstarinit 0
zidealstarinitgen 0
zkadd 0
zkchinese 0
zksub 0
Q_mod_bid 14
ideallistarch 14
join_archunit 14
nfM_det 14
famatQ_to_famatZ 35
famat_abs 35
famat_cba 35
famat_norm 35
famat_sign 35
join_arch 42
join_bid_arch 42
log_prk_units_init 49
idmulred 56
gideallist 63
idealHNF_norm_pval 63
sprk_get_k 63
sprk_to_bid 63
ideallog_units 84
nfV_cxlog 97
idealstarmod 112
to_RgX 119
idealprincipalunits 182
nfinvmodideal 189
famat_zlog_pr_coprime 196
nfdiveuc 259
nfdivrem 259
nfmod 259
zkchinese1init2 259
Idealstarprk 273
pr_equal 357
idpowred 413
join_unit 448
rnfeltnorm 462
join_bid 469
join_idealinit 469
veclog_prk 497
ZM_ZMV_mul 518
log_prk_units 518
cxlog_m1 532
nfeltembed 728
nfeltembed_i 728
Idealstar 938
pl_convert 985
rnfelttrace 1043
nfissquare 1099
famat_logembed 1309
RgM_RgX_mul 1365
rnfalgtobasis 1428
nfpolsturm 1904
sprk_log_gen_pr 2037
nfembed_i 2140
matbasistoalg 2653
pl_normalize 2660
vecsmall01_to_indices 2660
multable 2751
tablemulvec 2751
isprfact 5305
pr_init 5305
chineseinit_i 5774
nfispower 7719
ideallist 10563
nfM_mul 10610
idealchinese 10709
nfM_inv 11114
_nf_s 11128
RgM_to_nfM 11177
mulbytab 11213
ideallist0 11298
Ideallist 11333
is_chineseinit 11445
tablemul_ei 11557
ideallog 13769
gpnfvalrem 15015
nfchecksigns 15111
scalar_logembed 15239
nftrace 21300
tablemul_ei_ej 22203
cxlog_1 23119
oksigns 24890
RgX_to_nfX 29230
matalgtobasis 31947
chk_ind 36246
nfdiv 36320
ei_multable 39292
pr_basis_perm 43813
nfsign 44170
tablesqr 49090
_nf_inv 53959
rnfbasistoalg 55104
principal_units_relations 56776
nfC_multable_mul 57227
ZC_sub1 70487
idmul 72020
zk_embed 74775
nfchecksigns_i 80575
log_gen_arch 86269
idealfactorback 86367
idpow 87971
log_prk_init 90237
nflogembed 98705
sprk_log_gen_pr2 105866
nfeltsign 125601
parse_embed 128226
checkarchp 134087
indices_to_vec01 136888
RgC_to_nfC 149392
polmod_nffix 169037
polmod_nffix2 169128
principal_units 169276
idealprincipalunits_i 169277
ZC_add1 169772
nfC_nf_mul 200022
zkC_multable_mul 205721
nfM_nfC_mul 206222
check_nfelt 218945
nfnorm 223155
famat_cxlog 223285
ideallog_units0 227125
get_nf_field 227960
zidealij 237214
zkchineseinit 237216
zkVchinese1 237455
nfinv 240289
zkadd1 255414
zkmul 255441
zkchinese1 255475
zksub1 255476
split_U 257546
Idealstarmod 258007
Idealstarmod_i 258284
bid_grp 258571
check_mod_factored 258923
famat_strip2 258926
nffactorback 265467
join_ideal 268447
sprk_log_prk1 275851
sprk_get_gnf 318219
zk_inv 319228
eltmul 327957
coltoalg 335859
sprk_get_gen 335918
nfpow_u 354712
_mul 356504
init_zlog 380258
zlog 381548
setsigns_init 392054
sprk_log_prk1_2 404401
basistoalg 406283
log_gen_pr 413964
famat_nfvalrem 420735
sprkinit 426097
eltpow 465355
sarch_get_cyc 486473
order_update 560257
nfarchstar 567895
sarch_get_F 608759
sarch_get_lambda 608759
get_C 608760
sarch_get_MI 608760
nfsetsigns 722610
_nf_neg 751655
set_sign_mod_divisor 753869
concat_join 758696
num_positive 910207
nfpow 943033
algtobasis 952886
powp 973413
_sqr 987327
nfsign_arch 1047325
vec01_to_indices 1094085
sprk_get_U2 1205039
sprk_get_L2 1213628
ZC_prdvd 1250172
zkmultable_capZ 1261707
nf_cxlog 1309604
log_prk1 1331571
famat_zlog 1374188
ideallog_i 1383385
ideallogmod 1390064
sarch_get_archp 1556048
zkmultable_inv 1580931
ZC_cxlog 1715171
ZMV_ZCV_mul 1755685
nfsub 1815196
ZV_snf_gcd 1953015
famat_zlog_pr 1969488
sprk_get_expo 1969684
init_zlog_mod 1990751
apply_U 2156109
sprk_get_ff 2543570
sprk_is_prime 2543582
sprk_get_pr 2604027
log_prk 2617523
famat_to_nf_modideal_coprime 2622395
nfsqrmodideal 2688938
_nf_red 3099304
nfvalrem 3662670
sprk_get_cyc 3984105
nfsqri 4497272
nfmuli 4549460
pol_to_scalar_or_basis 4590338
low_prec 4612155
nfmulpowmodideal 4695076
nf_to_scalar_or_alg 4825743
sprk_get_prk 4917724
zk_scalar_or_multable 5001506
nfval 5633059
nfpowmodideal 5846289
nfsqri_ZC 7129379
nfmulmodideal 7292395
zk_modHNF 7818384
nfsqr 8914787
nfmuli_ZC 9062197
poltobasis 9766840
ZM_ZX_mul 10366581
zk_multable 10843818
_nf_add 12672932
_nf_mul 15218661
ZC_nfval 19756009
nfadd 23476605
zk_ei_mul 23968146
ZC_nfvalrem 24032265
nfmul 36372970
get_tab 40229668
is_famat 74739251
nf_to_scalar_or_basis 162241160
_mulii 1087499969

Generated by: LCOV version 1.16