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.12.1 lcov report (development 25360-69e1d37d28) Lines: 1842 1969 93.6 %
Date: 2020-05-27 06:00:58 Functions: 206 217 94.9 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
cxlog_m1 0
nfembed 0
oksigns 0
oksigns2 0
tablemul 0
zidealstar 0
zidealstarinit 0
zidealstarinitgen 0
zkadd 0
zkchinese 0
zksub 0
famat_norm 7
Q_mod_bid 14
ideallistarch 14
join_archunit 14
nfM_det 14
pr_equal 28
join_arch 42
join_bid_arch 42
log_prk_units_init 42
famat_zlog_pr_coprime 56
nfinvmodideal 56
nfeltembed 63
idealstar0 70
to_RgX 70
ideallog_units 84
nfV_cxlog 91
nfembed_i 91
idealprincipalunits 112
gpnfvalrem 154
rnfeltnorm 231
Idealstarprk 259
nfdiveuc 259
nfdivrem 259
nfmod 259
zkchinese1init2 259
ideallist0 350
pl_convert 406
join_unit 441
join_bid 462
join_idealinit 462
veclog_prk 497
ZM_ZMV_mul 518
log_prk_units 518
rnfelttrace 784
nfchecksigns 931
famat_nfvalrem 1015
rnfalgtobasis 1204
famat_logembed 1302
RgM_RgX_mul 1337
nfpolsturm 1477
pl_normalize 1785
vecsmall01_to_indices 1785
matbasistoalg 1897
num_positive 1903
multable 2009
tablemulvec 2009
sprk_log_gen_pr 2037
scalar_logembed 2114
nfsign 2128
ei_multable 2639
log_prk_init 2688
isprfact 2989
pr_init 2989
chineseinit_i 3122
matalgtobasis 4662
nfeltsign 4774
idealchinese 5621
ideallist 5684
principal_units_relations 5754
sprk_log_prk1 5901
Ideallist 6034
parse_embed 6307
ZC_sub1 6363
chk_ind 6384
indices_to_vec01 6552
is_chineseinit 7091
RgX_to_nfX 7867
nflogembed 8008
nfM_mul 8232
nfM_inv 8484
_nf_s 8498
RgM_to_nfM 8708
mulbytab 9191
famat_cxlog 9702
tablemul_ei 10731
sprk_get_gnf 10962
cxlog_1 11213
ZC_add1 12929
log_gen_arch 15113
idealprincipalunits_i 15176
principal_units 15176
nftrace 15330
pr_basis_perm 16282
tablemul_ei_ej 17864
ideallog 20622
powp 22064
zidealij 22120
setsigns_init 23522
zkchineseinit 24913
zkVchinese1 25172
vecmoduu 27230
zkadd1 27307
zkchinese1 27307
zkmul 27307
zksub1 27307
check_nfelt 30667
nfdiv 31676
sprk_log_gen_pr2 33929
ideallog_units0 37079
tablesqr 42091
nfnorm 42246
_nf_inv 43218
rnfbasistoalg 44212
split_U 44331
sprk_get_gen 44681
Idealstar 44863
famat_strip2 45101
Idealstar_i 45122
bid_grp 45402
nfC_multable_mul 46515
nfarchstar 46622
sprkinit 47369
sprk_log_prk1_2 49105
zk_inv 58216
nfpow_u 59430
join_ideal 60039
zlog 65891
get_C 66961
sarch_get_F 66961
sarch_get_MI 66961
sarch_get_lambda 66961
nfchecksigns_i 67718
nfinv 67872
RgC_to_nfC 78372
sarch_get_cyc 83272
nfvalrem 84672
log_gen_pr 93373
coltoalg 98014
init_zlog 98245
order_update 117258
concat_join 119245
nfsetsigns 120315
polmod_nffix 134267
polmod_nffix2 134358
zkC_multable_mul 134396
ZV_gcdmod 136690
basistoalg 144340
set_sign_mod_divisor 151451
_mul 167208
nfC_nf_mul 167895
nfM_nfC_mul 170254
sprk_get_U2 183120
get_nf_field 186984
sprk_get_L2 200137
log_prk1 201348
nf_cxlog 228399
nfpow 256733
zkmultable_capZ 286366
famat_zlog 286487
ideallog_i 293809
algtobasis 300412
ideallogmod 300487
apply_U 322112
sarch_get_archp 339078
famat_zlog_pr 341892
sprk_get_expo 341948
zkmultable_inv 344582
eval_sign 351534
ZMV_ZCV_mul 352287
sprk_get_pr 375856
nfsign_arch 400617
_sqr 402146
ZC_prdvd 406186
sprk_get_ff 422994
sprk_is_prime 422994
vec01_to_indices 424039
log_prk 428188
init_zlog_mod 429133
eval_sign_embed 429298
zk_embed 441106
famat_to_nf_modideal_coprime 455712
nfsqrmodideal 525871
low_prec 531089
_nf_neg 623763
sprk_get_cyc 653315
sprk_get_prk 814082
nfmulpowmodideal 850734
nfmuli 879426
nfpowmodideal 1047358
nfsqri 1141399
nf_to_scalar_or_alg 1144272
zk_modHNF 1160220
nfsqri_ZC 1237428
nfsub 1248142
nfval 1327174
nfmulmodideal 1561466
pol_to_scalar_or_basis 1611966
vecmodii 1691512
nfmuli_ZC 2105272
_nf_red 2570687
poltobasis 2751672
ZM_ZX_mul 2980043
zk_scalar_or_multable 4230137
nfsqr 5053884
zk_multable 5767603
ZC_nfval 8752237
ZC_nfvalrem 9424097
_nf_add 10367140
zk_ei_mul 10811245
_nf_mul 12473391
get_tab 14185154
nfadd 16724197
nfmul 22022788
is_famat 43128841
nf_to_scalar_or_basis 90934497
_mulii 553448354

Generated by: LCOV version 1.13