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 29419-8afb0ed749) Lines: 2052 2179 94.2 %
Date: 2024-07-02 09:03:41 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
sprk_get_k 63
sprk_to_bid 63
ideallog_units 84
nfV_cxlog 97
idealstarmod 112
to_RgX 119
idealprincipalunits 154
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 545
nfissquare 588
nfeltembed 728
nfeltembed_i 728
pl_convert 775
Idealstar 938
rnfelttrace 1015
num_positive 1262
famat_logembed 1309
RgM_RgX_mul 1365
rnfalgtobasis 1428
nfpolsturm 1596
sprk_log_gen_pr 2037
nfembed_i 2134
pl_normalize 2261
vecsmall01_to_indices 2261
matbasistoalg 2275
multable 2604
tablemulvec 2604
isprfact 4206
pr_init 4206
chineseinit_i 4661
nfispower 7746
idealchinese 8406
is_chineseinit 9443
nfM_mul 10358
ideallist 10563
nfM_inv 10827
_nf_s 10841
mulbytab 10919
RgM_to_nfM 10953
ideallist0 11298
Ideallist 11333
tablemul_ei 11473
ideallog 13769
nfchecksigns 14719
gpnfvalrem 15015
scalar_logembed 15232
nftrace 21304
tablemul_ei_ej 21902
cxlog_1 23163
RgX_to_nfX 28767
matalgtobasis 30720
chk_ind 35483
nfdiv 37019
ei_multable 39081
pr_basis_perm 43813
nfsign 43959
rnfbasistoalg 47488
tablesqr 49370
_nf_inv 53161
principal_units_relations 56644
nfC_multable_mul 56891
idmul 70361
ZC_sub1 70494
nfchecksigns_i 80244
setsigns_init 83454
idealfactorback 85079
idpow 86123
log_gen_arch 86254
log_prk_init 90115
nflogembed 98651
sprk_log_gen_pr2 105839
nfeltsign 124061
parse_embed 126378
checkarchp 134089
indices_to_vec01 136890
polmod_nffix 141436
polmod_nffix2 141527
RgC_to_nfC 148531
get_C 163613
sarch_get_F 163613
sarch_get_lambda 163613
sarch_get_MI 163614
idealprincipalunits_i 169096
principal_units 169097
ZC_add1 169701
nfC_nf_mul 197964
nfM_nfC_mul 204626
zkC_multable_mul 205386
check_nfelt 218783
nfnorm 222788
famat_cxlog 223252
get_nf_field 225825
ideallog_units0 227013
zidealij 236893
zkchineseinit 237162
zkVchinese1 237403
nfinv 239168
_mul 245132
zkadd1 255386
zkmul 255395
zkchinese1 255424
zksub1 255427
split_U 257420
Idealstarmod 257888
Idealstarmod_i 258160
bid_grp 258441
famat_strip2 258788
check_mod_factored 258795
nfarchstar 259441
nffactorback 265671
join_ideal 268493
sprk_log_prk1 274175
nfsetsigns 277345
coltoalg 305620
set_sign_mod_divisor 308889
zk_inv 315230
sprk_get_gnf 318598
eltmul 321190
sprk_get_gen 335791
nfpow_u 342210
basistoalg 358712
init_zlog 380069
zlog 381280
sprk_log_prk1_2 402695
log_gen_pr 413822
famat_nfvalrem 420721
sprkinit 425817
eltpow 458795
sarch_get_cyc 486230
order_update 560560
sarch_get_archp 665694
_nf_neg 747819
_sqr 757828
concat_join 758947
eval_sign 779281
nfpow 854863
eval_sign_embed 875865
zk_embed 894146
algtobasis 921323
powp 951048
nfsign_arch 1040316
vec01_to_indices 1087048
sprk_get_U2 1203037
sprk_get_L2 1211721
ZC_prdvd 1246513
zkmultable_capZ 1260259
nf_cxlog 1309641
log_prk1 1329258
famat_zlog 1374219
ideallog_i 1383472
ideallogmod 1390152
zkmultable_inv 1575485
ZC_cxlog 1714931
ZMV_ZCV_mul 1755453
nfsub 1810800
ZV_snf_gcd 1952570
famat_zlog_pr 1969399
sprk_get_expo 1969595
init_zlog_mod 1990533
apply_U 2151377
sprk_is_prime 2543207
sprk_get_ff 2543226
sprk_get_pr 2603898
log_prk 2617002
famat_to_nf_modideal_coprime 2621557
nfsqrmodideal 2685212
_nf_red 3080880
nfvalrem 3639112
nf_to_scalar_or_alg 3877539
nfmuli 3968716
sprk_get_cyc 3981608
nfsqri 4257274
pol_to_scalar_or_basis 4556122
low_prec 4611596
nfmulpowmodideal 4672789
zk_scalar_or_multable 4842238
sprk_get_prk 4915581
nfval 5621871
nfpowmodideal 5823196
nfsqri_ZC 6885757
nfmulmodideal 7266750
zk_modHNF 7784493
nfmuli_ZC 8483424
nfsqr 8906046
poltobasis 9707557
ZM_ZX_mul 10306903
zk_multable 10655213
_nf_add 12632962
_nf_mul 15164880
ZC_nfval 19891598
nfadd 23432667
zk_ei_mul 23730196
ZC_nfvalrem 24142258
nfmul 36295168
get_tab 39169139
is_famat 74497140
nf_to_scalar_or_basis 161130406
_mulii 1074368903

Generated by: LCOV version 1.16