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 21913-852521c) Lines: 1586 1688 94.0 %
Date: 2018-02-19 06:15:51 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
nfinvmodideal 133
gpnfvalrem 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 581
nfeltsign 770
rnfalgtobasis 1176
matbasistoalg 1288
nfsign 1309
pl_normalize 1316
vecsmall01_to_indices 1316
RgM_RgX_mul 1330
num_positive 1434
nfembed 1610
multable 1659
tablemulvec 1659
isprfact 2086
pr_init 2086
chineseinit_i 2149
ei_multable 2289
matalgtobasis 2681
ideallist 2842
Ideallist 3192
idealchinese 3682
ZC_sub1 3766
indices_to_vec01 4830
nfeltembed 4963
is_chineseinit 4984
RgX_to_nfX 5622
principal_units_relations 5768
zlog_pr_init 6062
ZC_add1 6265
mulbytab 7574
nfM_mul 8092
nfM_inv 8302
_nf_s 8316
pr_basis_perm 8344
RgM_to_nfM 8463
log_gen_arch 9975
nfembed_i 10157
tablemul_ei 10311
zkchineseinit 10752
zkVchinese1 11011
zkadd1 12215
zkchinese1 12215
zkmul 12215
zksub1 12215
idealprincipalunits_i 14126
principal_units 14126
setsigns_init 14368
tablemul_ei_ej 17052
nfdiv 18445
chk_ind 18767
powp 20111
zidealij 20790
nftrace 23555
nfnorm 24630
sprk_get_gen 25606
split_U 26033
Idealstar 26523
famat_strip2 26775
Idealstar_i 26796
bid_grp 27090
nfarchstar 28151
_mul 28589
sprkinit 31668
rnfbasistoalg 36533
tablesqr 40040
zk_inv 40101
_nf_inv 41734
nfpow_u 46011
join_ideal 47698
sarch_get_cyc 49259
nfC_multable_mul 50498
log_gen_pr 50820
get_C 54548
sarch_get_F 54548
sarch_get_MI 54548
sarch_get_lambda 54548
polmod_nffix 61691
polmod_nffix2 61782
nfchecksigns_i 63406
nfinv 63994
nfvalrem 64932
RgC_to_nfC 76902
coltoalg 78155
concat_join 86065
basistoalg 87185
nfsetsigns 91690
vecmoduu 94899
nfpow 102052
_sqr 105691
set_sign_mod_divisor 109722
famat_zlog_pr 110268
sprk_get_expo 110268
famat_zlog 113208
sprk_get_pr 129266
zkC_multable_mul 129295
algtobasis 153983
nfM_nfC_mul 161658
nfC_nf_mul 166705
get_nf_field 178066
check_nfelt 181110
nf_to_scalar_or_alg 182108
sprk_get_U2 187115
famat_to_nf_modideal_coprime 192112
sprk_get_L2 198021
log_prk1 226217
ZC_prdvd 242270
zlog 244754
sarch_get_archp 264615
nfsqrmodideal 277249
ideallog 285291
sprk_get_prk 297383
ideallog_sgn 299984
eval_sign 310569
ZMV_ZCV_mul 311548
ideallog_i 313144
nfsign_arch 345744
sprk_get_cyc 347818
init_zlog 351987
apply_U 355710
vec01_to_indices 360444
zkmultable_capZ 376688
eval_sign_embed 383152
nf_log 386400
sprk_get_ff 386400
sprk_is_prime 386400
zlog_pr 387436
zk_embed 393729
zkmultable_inv 416789
nfmulpowmodideal 423136
nfpowmodideal 476273
_nf_neg 571655
zk_modHNF 604269
nfsqri 664796
nfmulmodideal 735828
nfsub 1193241
vecmodii 1202451
nfval 1301797
pol_to_scalar_or_basis 1441913
zk_scalar_or_multable 1581928
nfmuli 1589048
poltobasis 2150004
ZM_ZX_mul 2309608
_nf_red 2402169
zk_multable 2960270
nfsqr 4749854
ZC_nfval 4839238
ZC_nfvalrem 5075947
zk_ei_mul 7270765
_nf_add 9332820
get_tab 9554247
_nf_mul 11300121
nfadd 15594530
nfmul 20603829
nf_to_scalar_or_basis 81592850
_mulii 386396552

Generated by: LCOV version 1.11