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 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.10.0 lcov report (development 21350-3349c1d) Lines: 1586 1688 94.0 %
Date: 2017-11-21 06:21:18 Functions: 180 189 95.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
oksigns 0
oksigns2 0
tablemul 0
zidealstar 0
zidealstarinit 0
zidealstarinitgen 0
zkadd 0
zkchinese 0
zksub 0
Q_mod_bid 7
famat_norm 7
ideallistarch 14
nfM_det 14
join_archunit 28
pr_equal 28
join_arch 56
join_bid_arch 56
idealstar0 63
idealprincipalunits 112
gpnfvalrem 147
nfinvmodideal 147
pl_convert 203
rnfeltnorm 231
nfdiveuc 259
nfdivrem 259
nfmod 259
zkchinese1init2 259
Idealstarprk 273
ideallist0 350
vzlog_pr 378
join_unit 455
join_bid 476
join_idealinit 476
ZM_ZMV_mul 518
nfchecksigns 560
rnfelttrace 567
nfeltsign 770
rnfalgtobasis 1176
matbasistoalg 1260
nfsign 1309
pl_normalize 1316
vecsmall01_to_indices 1316
RgM_RgX_mul 1330
num_positive 1434
multable 1610
nfembed 1610
tablemulvec 1610
isprfact 2079
pr_init 2079
chineseinit_i 2142
ei_multable 2275
matalgtobasis 2660
ideallist 2842
Ideallist 3192
idealchinese 3654
ZC_sub1 3766
indices_to_vec01 4830
nfeltembed 4893
is_chineseinit 4963
RgX_to_nfX 5202
principal_units_relations 5768
zlog_pr_init 6062
ZC_add1 6265
mulbytab 7385
nfM_mul 8036
nfM_inv 8232
_nf_s 8246
pr_basis_perm 8344
RgM_to_nfM 8351
log_gen_arch 9975
nfembed_i 10031
tablemul_ei 10269
zkchineseinit 10752
zkVchinese1 11011
zkadd1 12215
zkchinese1 12215
zkmul 12215
zksub1 12215
idealprincipalunits_i 14133
principal_units 14133
setsigns_init 14368
tablemul_ei_ej 16926
nfdiv 18298
chk_ind 18557
powp 20104
zidealij 20797
nftrace 23555
nfnorm 24616
sprk_get_gen 25613
split_U 26019
Idealstar 26509
famat_strip2 26761
Idealstar_i 26782
bid_grp 27076
_mul 28092
nfarchstar 28137
sprkinit 31675
rnfbasistoalg 36134
zk_inv 39828
tablesqr 39914
_nf_inv 41454
nfpow_u 45703
join_ideal 47698
sarch_get_cyc 49245
nfC_multable_mul 49861
log_gen_pr 50820
get_C 55241
sarch_get_F 55241
sarch_get_MI 55241
sarch_get_lambda 55241
polmod_nffix 61278
polmod_nffix2 61369
nfchecksigns_i 63399
nfinv 63602
nfvalrem 64925
RgC_to_nfC 75866
coltoalg 77938
concat_join 86065
basistoalg 86779
nfsetsigns 91690
vecmoduu 94899
nfpow 101282
_sqr 104689
set_sign_mod_divisor 109729
famat_zlog_pr 110275
sprk_get_expo 110275
famat_zlog 113215
zkC_multable_mul 129155
sprk_get_pr 129273
algtobasis 153801
nfM_nfC_mul 160958
nfC_nf_mul 164549
get_nf_field 177240
check_nfelt 181292
nf_to_scalar_or_alg 181765
sprk_get_U2 187346
famat_to_nf_modideal_coprime 192119
sprk_get_L2 198252
log_prk1 226448
ZC_prdvd 242137
zlog 244985
sarch_get_archp 264615
nfsqrmodideal 276148
ideallog 285501
sprk_get_prk 297621
ideallog_sgn 300201
eval_sign 310569
ZMV_ZCV_mul 311779
ideallog_i 313375
nfsign_arch 345744
sprk_get_cyc 348070
init_zlog 352204
apply_U 355941
vec01_to_indices 360444
zkmultable_capZ 377386
eval_sign_embed 382438
nf_log 386694
sprk_get_ff 386694
sprk_is_prime 386694
zlog_pr 387730
zk_embed 393715
zkmultable_inv 417214
nfmulpowmodideal 423466
nfpowmodideal 476610
_nf_neg 569926
zk_modHNF 602574
nfsqri 671120
nfmulmodideal 735403
nfsub 1191645
vecmodii 1201380
nfval 1301384
pol_to_scalar_or_basis 1438707
zk_scalar_or_multable 1582729
nfmuli 1583970
poltobasis 2143917
ZM_ZX_mul 2301135
_nf_red 2394084
zk_multable 2960239
nfsqr 4745681
ZC_nfval 4831303
ZC_nfvalrem 5068187
zk_ei_mul 7278456
_nf_add 9315719
get_tab 9563002
_nf_mul 11276811
nfadd 15574895
nfmul 20574791
nf_to_scalar_or_basis 81481592
_mulii 386995798

Generated by: LCOV version 1.11