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 - base2.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 19832-7f23dbb) Lines: 1955 2276 85.9 %
Date: 2016-12-08 05:49:22 Functions: 156 167 93.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Decomp 23779
Flx_checkdeflate 101295
Flx_radical 101295
FpX_radical 3100
Fp_basis 44856
FqM_to_nfM 1148
FqV_to_nfV 0
FqX_non_root 21
FqX_to_nfX 4039
Fq_to_nf 1174152
QpXV_denom 46760
QpX_denom 334166
QpX_remove_denom 142212
RgV_nffix 28
RgX_nffix 65150
Rg_nffix 190294
Rg_to_ff 4319734
ZX_Dedekind 96950
ZX_compositum_disjoint 385
ZX_rescale_inv 1393
Zlx_gcd 18086
Zlx_sylvester_echelon 711430
ZpM_hnfmodid 32739
ZpX_disc_val 28056
ZpX_gcd 23779
ZpX_monic_factor 1225
ZpX_reduced_resultant 79812
ZpX_reduced_resultant_fast 54245
ZpX_resultant_val 594854
ZpX_resultant_val_i 621657
ZpX_sylvester_echelon 13818
_msqr 3234
_sqr 7777
allbase2 0
anti_uniformizer 394863
checkmodpr 182
checkprid 2161472
checkprid_i 2812514
companion 0
compmod 20321
compositum 35
compositum2 231
compositum_fix 959
dbasis 44079
diag_denom 6559
dim1proj 400243
ei_msqr_mod 68869
errprime 0
expo_is_squarefree 1015
fact_from_factors 70
ffdegree 77
fill 1904
fnz 38570
gen_if_principal 35
get_LV 13204
get_coprimes 70
get_g 39081
get_gamma 38647
get_maxord 9121
get_modpr 2982
get_norm 47024
get_nu 60298
get_order 70
get_partial_order_as_pols 46760
get_powers 20688
get_pr 47063
get_prid 645862
get_proj_modT 12292
getprime 47047
ideal_is1 3353
idealprimedec 90096
idealprimedec_kummer 663271
idealprimedec_limit_f 553705
idealprimedec_limit_norm 321118
indexpartial 2073
init_m 649099
init_norm 13204
is_pseudo_matrix 63
is_uniformizer 47024
lift_to_zk 1442
loop 18774
loop_init 24843
manage_cache 65702
matinv 0
maxord 96950
maxord2 0
maxord_i 33600
minval 1421
mk_pr 708415
modpr_TAU 639352
modpr_genFq 1841
modprinit 411616
mtran 0
mtran_long 0
mul_intersect 112574
mycaract 65702
newtoncharpoly 64764
newtonsums 65702
nextk 14
nfM_to_FqM 665
nfV_to_FqV 3749
nfXQ_mul 6874
nfX_mul 6874
nfX_rem 6874
nfX_to_FqX 11800
nf_pV_to_prV 343
nf_to_Fq 4319314
nf_to_Fq_init 639121
nfbasis 56
nfbasis_gp 56
nfcompositum 525
nfdisc 3129
nfidealdet1 63
nfmaxord 5922
nfmaxord_check_args 9051
nfmodpr 238
nfmodprinit 49
nfmodprlift 56
nfreducemodpr 182
nfsplitting 112
nilord 19306
ok_modpr 550137
p_is_prime 1001
pol_min 20240
polcompositum0 385
polsymmodp 38948
pow_ei_mod_p 82032
pradical 13204
primedec_aux 553705
primedec_end 13204
redelt 7259
redelt_i 11172
rnfallbase 1134
rnfbasis 21
rnfdedekind 77
rnfdedekind_i 1666
rnfdet 21
rnfdiscf 7
rnfeltid_powmod 2345
rnfhnfbasis 7
rnfisfree 7
rnfisfree_aux 7
rnfjoinmodules 1589
rnfjoinmodules_i 952
rnfmaxord 1589
rnfpseudobasis 49
rnfsimplifybasis 0
rnfsteinitz 28
rowred 0
rowred_long 0
safe_Z_pvalrem 161
set_disc 9051
split_char 51107
sqr_mod 139242
testb2 7749
testc2 1547
to_ff_init 650600
triv_order 763
uniformizer 37318
update_den 530145
update_fact 413
update_phi 14833
vstar 48706
zk_to_Fq 522320
zk_to_Fq_init 11479
zkmodprinit 5267
zx_z_div 93844

Generated by: LCOV version 1.11