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 20076-e66e249) Lines: 1955 2275 85.9 %
Date: 2017-01-17 05:50:07 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 101309
Flx_radical 101309
FpX_radical 3100
Fp_basis 44870
FqM_to_nfM 1148
FqV_to_nfV 0
FqX_non_root 21
FqX_to_nfX 4088
Fq_to_nf 1174292
QpXV_denom 46760
QpX_denom 334166
QpX_remove_denom 142212
RgV_nffix 28
RgX_nffix 65479
Rg_nffix 191330
Rg_to_ff 4349414
ZX_Dedekind 96964
ZX_compositum_disjoint 385
ZX_rescale_inv 1393
Zlx_gcd 18086
Zlx_sylvester_echelon 722464
ZpM_hnfmodid 32739
ZpX_disc_val 28056
ZpX_gcd 23779
ZpX_monic_factor 1225
ZpX_reduced_resultant 79945
ZpX_reduced_resultant_fast 54315
ZpX_resultant_val 605759
ZpX_resultant_val_i 632562
ZpX_sylvester_echelon 13822
_msqr 3234
_sqr 7777
allbase2 0
anti_uniformizer 394996
checkmodpr 182
checkprid 2176923
checkprid_i 2841132
companion 0
compmod 20321
compositum 35
compositum2 231
compositum_fix 959
dbasis 44086
diag_denom 6566
dim1proj 401162
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 13211
get_coprimes 70
get_g 39081
get_gamma 38647
get_maxord 9282
get_modpr 3122
get_norm 47038
get_nu 60298
get_order 70
get_partial_order_as_pols 46760
get_powers 20695
get_pr 47077
get_prid 658889
get_proj_modT 12306
getprime 47047
ideal_is1 3353
idealprimedec 90306
idealprimedec_kummer 677781
idealprimedec_limit_f 562909
idealprimedec_limit_norm 321825
indexpartial 2178
init_m 660074
init_norm 13211
is_pseudo_matrix 63
is_uniformizer 47038
lift_to_zk 1442
loop 18774
loop_init 24843
manage_cache 65702
matinv 0
maxord 96964
maxord2 0
maxord_i 33600
minval 1421
mk_pr 722939
modpr_TAU 665532
modpr_genFq 1841
modprinit 412451
mtran 0
mtran_long 0
mul_intersect 112602
mycaract 65702
newtoncharpoly 64764
newtonsums 65702
nextk 14
nfM_to_FqM 665
nfV_to_FqV 3889
nfXQ_mul 6874
nfX_mul 6874
nfX_rem 6874
nfX_to_FqX 12409
nf_pV_to_prV 364
nf_to_Fq 4348994
nf_to_Fq_init 665301
nfbasis 56
nfbasis_gp 56
nfcompositum 525
nfdisc 3129
nfidealdet1 63
nfmaxord 6083
nfmaxord_check_args 9212
nfmodpr 238
nfmodprinit 49
nfmodprlift 56
nfreducemodpr 182
nfsplitting 119
nilord 19306
ok_modpr 550459
p_is_prime 1001
pol_min 20247
polcompositum0 385
polsymmodp 38948
pow_ei_mod_p 82046
pradical 13211
primedec_aux 562909
primedec_end 13211
redelt 7259
redelt_i 11172
rnfallbase 1169
rnfbasis 21
rnfdedekind 77
rnfdedekind_i 1687
rnfdet 21
rnfdiscf 7
rnfeltid_powmod 2345
rnfhnfbasis 7
rnfisfree 7
rnfisfree_aux 7
rnfjoinmodules 1610
rnfjoinmodules_i 952
rnfmaxord 1610
rnfpseudobasis 49
rnfsimplifybasis 0
rnfsteinitz 28
rowred 0
rowred_long 0
safe_Z_pvalrem 161
set_disc 9212
split_char 51107
sqr_mod 139249
testb2 7749
testc2 1547
to_ff_init 677347
triv_order 791
uniformizer 37332
update_den 530145
update_fact 413
update_phi 14833
vstar 48706
zk_to_Fq 533699
zk_to_Fq_init 12046
zkmodprinit 5402
zx_z_div 93858

Generated by: LCOV version 1.11