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-bordeaux1.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 17908-5dc2363) Lines: 1894 2202 86.0 %
Date: 2015-07-04 Functions: 150 160 93.8 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1043 1422 73.3 %

Function Name Sort by function name Hit count Sort by hit count
Decomp 23317
Flx_checkdeflate 99181
Flx_radical 99181
FpX_radical 3094
Fp_basis 38609
FqM_to_nfM 924
FqV_to_nfV 7
FqX_non_root 21
FqX_to_nfX 3136
Fq_to_nf 36743
QpXV_denom 46326
QpX_denom 323666
QpX_remove_denom 131089
RgV_nffix 28
RgX_nffix 66024
Rg_nffix 190050
Rg_to_ff 943327
ZX_Dedekind 94941
ZX_compositum_disjoint 385
ZX_rescale_inv 1288
Zlx_gcd 17779
Zlx_sylvester_echelon 186181
ZpM_hnfmodid 32382
ZpX_disc_val 27370
ZpX_gcd 23317
ZpX_reduced_resultant 78645
ZpX_reduced_resultant_fast 52969
ZpX_resultant_val 70658
ZpX_resultant_val_i 97244
ZpX_sylvester_echelon 13025
_msqr 2471
_sqr 7868
allbase2 0
allbase_from_maxord 4424
anti_uniformizer2 320955
checkmodpr 434
checkprid 1031205
companion 0
compmod 20020
compositum 35
compositum2 231
compositum_fix 763
dbasis 43449
diag_denom 5971
dim1proj 241165
disc_from_maxord 3115
errprime 0
fact_from_factors 63
ffdegree 434
fill 1736
fnz 38164
gen_if_principal 35
get_LV 13463
get_coprimes 77
get_d 728
get_g 38493
get_gamma 38185
get_maxord 7546
get_modpr 2506
get_norm 390963
get_nu 59451
get_order 70
get_partial_order_as_pols 46326
get_powers 17507
get_pr 40366
get_prid 550816
get_proj_modT 99394
getprime 46018
ideal_is1 3017
idealprimedec 112459
idealprimedec_limit_f 343791
idealprimedec_limit_norm 154714
indexpartial 2219
init_m 123627
init_norm 13463
is_prid 1584569
is_pseudo_matrix 63
is_uniformizer 390963
kill_cache 19985
lift_to_zk 8246
loop 18515
loop_init 24255
manage_cache 55741
matinv 0
maxord 94941
maxord2 0
maxord_i 32774
mk_pr 483041
modpr_TAU 323209
modpr_genFq 483
modprinit 342309
mtran 0
mtran_long 0
mul_intersect 92415
mycaract 55741
newtoncharpoly 54782
newtonsums 55741
nextk 7
nfM_to_FqM 581
nfV_to_FqV 3287
nfX_to_FqX 11235
nf_to_Fq 942893
nf_to_Fq_init 322887
nfbasis 56
nfbasis_gp 56
nfcompositum 406
nfdisc 3115
nfidealdet1 56
nfmaxord 4431
nfmaxord_check_args 7546
nfmodprinit 49
nfreducemodpr 434
nfsplitting 70
nilord 18802
ok_modpr 553091
p_is_prime 1022
pol_min 14259
polcompositum0 308
polsymmodp 31045
pradical 13463
primedec_apply_kummer 446284
primedec_aux 343791
primedec_end 13463
redelt 7084
redelt_i 10962
rnfallbase 735
rnfbasis 21
rnfdedekind 77
rnfdedekind_i 1253
rnfdet 21
rnfdiscf 7
rnfeltid_powmod 2142
rnfhnfbasis 7
rnfisfree 7
rnfisfree_aux 7
rnfjoinmodules 1176
rnfjoinmodules_i 868
rnfmaxord 1176
rnfpseudobasis 49
rnfsimplifybasis 0
rnfsteinitz 28
rowred 0
rowred_long 0
safe_Z_pvalrem 112
set_disc 7546
special_anti_uniformizer 175711
split_char 50435
testb2 7672
testc2 1498
to_ff_init 342585
triv_order 476
uniformizer 28611
update_den 483245
update_fact 238
update_phi 14553
vstar 47586
zk_to_Fq 417878
zk_to_Fq_init 19698
zkmodprinit 5093
zx_z_div 91841

Generated by: LCOV version 1.9