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.16.2 lcov report (development 29115-f22e516b23) Lines: 2041 2174 93.9 %
Date: 2024-02-22 08:05:55 Functions: 228 241 94.6 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
idealstar0 0
nfM_ker 0
nfembed 0
oksigns 0
oksigns2 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
nfissquare 63
sprk_get_k 63
sprk_to_bid 63
ideallog_units 84
nfV_cxlog 97
idealstarmod 105
to_RgX 105
idealprincipalunits 154
nfinvmodideal 175
famat_zlog_pr_coprime 196
nfdiveuc 259
nfdivrem 259
nfmod 259
zkchinese1init2 259
Idealstarprk 273
nfeltembed 294
nfeltembed_i 294
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 542
nfembed_i 658
pl_convert 775
Idealstar 924
rnfelttrace 1015
num_positive 1268
famat_logembed 1309
RgM_RgX_mul 1365
rnfalgtobasis 1428
nfpolsturm 1596
sprk_log_gen_pr 2037
matbasistoalg 2240
pl_normalize 2247
vecsmall01_to_indices 2247
multable 2520
tablemulvec 2520
isprfact 4192
pr_init 4192
chineseinit_i 4647
nfispower 8083
idealchinese 8392
is_chineseinit 9401
nfM_mul 9924
nfM_inv 10344
_nf_s 10358
ideallist 10563
RgM_to_nfM 10603
mulbytab 10618
ideallist0 11298
Ideallist 11333
tablemul_ei 11347
ideallog 13762
nfchecksigns 14719
gpnfvalrem 15015
scalar_logembed 16681
tablemul_ei_ej 21090
nftrace 21303
cxlog_1 23284
RgX_to_nfX 29090
matalgtobasis 30631
chk_ind 35483
nfdiv 36171
ei_multable 39186
pr_basis_perm 43616
nfsign 43960
rnfbasistoalg 47488
tablesqr 48551
_nf_inv 51201
nfC_multable_mul 55071
principal_units_relations 56615
idmul 70354
ZC_sub1 70455
nfchecksigns_i 80204
setsigns_init 83410
idealfactorback 85149
log_gen_arch 86103
idpow 86116
log_prk_init 90118
nflogembed 99953
sprk_log_gen_pr2 105619
nfeltsign 124061
parse_embed 125944
checkarchp 134083
indices_to_vec01 136805
polmod_nffix 141303
polmod_nffix2 141394
RgC_to_nfC 145892
get_C 163592
sarch_get_F 163592
sarch_get_lambda 163592
sarch_get_MI 163593
idealprincipalunits_i 169061
principal_units 169064
ZC_add1 169673
nfC_nf_mul 192434
nfnorm 194240
nfM_nfC_mul 199439
zkC_multable_mul 204316
check_nfelt 218737
get_nf_field 219721
famat_cxlog 223321
ideallog_units0 226978
nfinv 236551
zidealij 236783
zkchineseinit 237103
zkVchinese1 237376
zkadd1 255269
zkmul 255300
zkchinese1 255354
zksub1 255355
split_U 257382
Idealstarmod 257793
Idealstarmod_i 258071
bid_grp 258386
check_mod_factored 258709
famat_strip2 258715
nfarchstar 259363
nffactorback 265081
join_ideal 268562
_mul 269583
sprk_log_prk1 274138
nfsetsigns 274458
coltoalg 304906
set_sign_mod_divisor 305986
zk_inv 315221
sprk_get_gnf 318446
eltmul 325113
sprk_get_gen 335707
nfpow_u 343730
basistoalg 357732
init_zlog 379919
zlog 381178
sprk_log_prk1_2 402408
log_gen_pr 413437
famat_nfvalrem 420721
sprkinit 425741
eltpow 462132
sarch_get_cyc 486125
order_update 558021
sarch_get_archp 659860
_nf_neg 735590
concat_join 759191
eval_sign 786013
_sqr 806079
eval_sign_embed 882542
nfpow 883167
zk_embed 900811
algtobasis 919018
powp 951496
nfsign_arch 995537
vec01_to_indices 1042238
sprk_get_U2 1202528
sprk_get_L2 1211195
ZC_prdvd 1243620
zkmultable_capZ 1258316
nf_cxlog 1309042
log_prk1 1328607
famat_zlog 1371792
ideallog_i 1381011
ideallogmod 1387691
zkmultable_inv 1573531
ZC_cxlog 1673933
ZMV_ZCV_mul 1752933
nfsub 1803268
ZV_snf_gcd 1952155
famat_zlog_pr 1966593
sprk_get_expo 1966790
init_zlog_mod 1987894
apply_U 2149002
sprk_get_ff 2540303
sprk_is_prime 2540328
sprk_get_pr 2600867
log_prk 2614078
famat_to_nf_modideal_coprime 2618547
_nf_red 3020596
nfsqrmodideal 3077535
nfvalrem 3651027
nf_to_scalar_or_alg 3867513
sprk_get_cyc 3978236
nfmuli 4247156
low_prec 4444158
pol_to_scalar_or_basis 4551637
nfmulpowmodideal 4627967
nfsqri 4700028
zk_scalar_or_multable 4883576
sprk_get_prk 4909555
nfval 5632757
nfpowmodideal 5775660
nfsqri_ZC 7329185
nfmulmodideal 7612874
zk_modHNF 8353565
nfmuli_ZC 8802573
nfsqr 8857935
poltobasis 9704789
ZM_ZX_mul 10301070
zk_multable 10687498
_nf_add 12502657
_nf_mul 14987696
ZC_nfval 21763416
nfadd 23295159
zk_ei_mul 23822923
ZC_nfvalrem 26026985
nfmul 36100179
get_tab 40024373
is_famat 74182965
nf_to_scalar_or_basis 160255785
_mulii 1082783495

Generated by: LCOV version 1.14