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.8.0 lcov report (development 19217-a6dcf64) Lines: 1895 2212 85.7 %
Date: 2016-07-27 07:10:32 Functions: 149 159 93.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Decomp 23282
Flx_checkdeflate 99757
Flx_radical 99757
FpX_radical 3093
Fp_basis 40254
FqM_to_nfM 1176
FqV_to_nfV 7
FqX_non_root 21
FqX_to_nfX 3997
Fq_to_nf 1173025
QpXV_denom 46242
QpX_denom 330099
QpX_remove_denom 139622
RgV_nffix 28
RgX_nffix 64085
Rg_nffix 186095
Rg_to_ff 4729382
ZX_Dedekind 95515
ZX_compositum_disjoint 385
ZX_rescale_inv 1330
Zlx_gcd 17765
Zlx_sylvester_echelon 186049
ZpM_hnfmodid 32403
ZpX_disc_val 27342
ZpX_gcd 23282
ZpX_reduced_resultant 78890
ZpX_reduced_resultant_fast 53347
ZpX_resultant_val 70378
ZpX_resultant_val_i 96838
ZpX_sylvester_echelon 12961
_msqr 2569
_sqr 8036
allbase2 0
allbase_from_maxord 5663
anti_uniformizer2 687986
checkmodpr 434
checkprid 2845088
companion 0
compmod 19866
compositum 35
compositum2 231
compositum_fix 805
dbasis 43491
diag_denom 5978
dim1proj 533716
disc_from_maxord 3129
errprime 0
fact_from_factors 70
ffdegree 434
fill 2016
fnz 36358
gen_if_principal 35
get_LV 14317
get_coprimes 70
get_d 1071
get_g 38374
get_gamma 38003
get_maxord 8869
get_modpr 2975
get_norm 532296
get_nu 59304
get_order 70
get_partial_order_as_pols 46242
get_powers 19719
get_pr 42389
get_prid 649152
get_proj_modT 174945
getprime 45976
ideal_is1 3311
idealprimedec 213180
idealprimedec_limit_f 520308
idealprimedec_limit_norm 180110
indexpartial 2373
init_m 123725
init_norm 14317
is_prid 3496788
is_pseudo_matrix 63
is_uniformizer 532296
lift_to_zk 11648
loop 18403
loop_init 24220
manage_cache 64610
matinv 0
maxord 95515
maxord2 0
maxord_i 32816
mk_pr 723814
modpr_TAU 690625
modpr_genFq 1848
modprinit 711853
mtran 0
mtran_long 0
mul_intersect 96398
mycaract 64610
newtoncharpoly 63672
newtonsums 64610
nextk 14
nfM_to_FqM 707
nfV_to_FqV 3756
nfX_to_FqX 12915
nf_to_Fq 4728948
nf_to_Fq_init 690289
nfbasis 56
nfbasis_gp 56
nfcompositum 448
nfdisc 3129
nfidealdet1 56
nfmaxord 5670
nfmaxord_check_args 8799
nfmodprinit 49
nfreducemodpr 434
nfsplitting 112
nilord 18823
ok_modpr 553742
p_is_prime 1001
pol_min 14917
polcompositum0 308
polsymmodp 38220
pradical 14317
primedec_apply_kummer 685125
primedec_aux 520308
primedec_end 14317
redelt 7112
redelt_i 10962
rnfallbase 1078
rnfbasis 21
rnfdedekind 77
rnfdedekind_i 1624
rnfdet 21
rnfdiscf 7
rnfeltid_powmod 2310
rnfhnfbasis 7
rnfisfree 7
rnfisfree_aux 7
rnfjoinmodules 1547
rnfjoinmodules_i 1008
rnfmaxord 1547
rnfpseudobasis 49
rnfsimplifybasis 0
rnfsteinitz 28
rowred 0
rowred_long 0
safe_Z_pvalrem 161
set_disc 8799
special_anti_uniformizer 270092
split_char 50211
testb2 7658
testc2 1463
to_ff_init 712500
triv_order 714
uniformizer 29983
update_den 522676
update_fact 238
update_phi 14574
vstar 47572
zk_to_Fq 2122952
zk_to_Fq_init 22211
zkmodprinit 5093
zx_z_div 92416

Generated by: LCOV version 1.11